Helper class to output normal text @param nonToken @param output
(String nonToken, java.io.Writer output)
| 1204 | * @param output |
| 1205 | */ |
| 1206 | private void outputNonToken(String nonToken, java.io.Writer output) |
| 1207 | { |
| 1208 | // Do nothing if something shouldn't be output. |
| 1209 | if (canWrite && !nonToken.isEmpty()) |
| 1210 | { |
| 1211 | String finalToken; |
| 1212 | // If we have manual white space then remove an tab characters |
| 1213 | if (manualWhitespace) |
| 1214 | { |
| 1215 | finalToken = nonToken.replaceAll("[ \\t]", ""); |
| 1216 | } |
| 1217 | else |
| 1218 | { |
| 1219 | finalToken = nonToken; |
| 1220 | } |
| 1221 | |
| 1222 | FileAccess.write(output, finalToken); |
| 1223 | } |
| 1224 | } |
| 1225 | |
| 1226 | /** |
| 1227 | * Helper method to parse |FOR tokens (pre-processing for a template) |
no test coverage detected