mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
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:
parent
8775db551e
commit
78e4232e53
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue