ICU-6867 Merged c25991(#6794) from trunk to maint-4-2. This change only adds a method used by CLDR tooling and no impacts to ICU4J release binaries.

X-SVN-Rev: 25992
This commit is contained in:
Yoshito Umaoka 2009-05-07 17:40:25 +00:00
parent 8775db551e
commit 78e4232e53

View file

@ -27,6 +27,11 @@ public class FileUtilities {
InputStreamReader isr = (encoding == UTF8_UNIX || encoding == UTF8_WINDOWS) ? new InputStreamReader(fis, "UTF8") : new InputStreamReader(fis);
BufferedReader br = new BufferedReader(isr, 32*1024);
*/
appendBufferedReader(br, output, replacementList);
}
public static void appendBufferedReader(BufferedReader br,
PrintWriter output, String[] replacementList) throws IOException {
while (true) {
String line = br.readLine();
if (line == null) break;
@ -37,6 +42,7 @@ public class FileUtilities {
}
output.println(line);
}
br.close();
}
/**