From 000a020e32429a00ce4af87ea3479804476dd660 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Tue, 23 Oct 2012 10:42:22 +0900 Subject: [PATCH] Use a buffered writer for XML output Change-Id: I85aa133985282993542659db2ee61960b02042d7 --- .../android/inputmethod/latin/dicttool/DictionaryMaker.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/dicttool/src/com/android/inputmethod/latin/dicttool/DictionaryMaker.java b/tools/dicttool/src/com/android/inputmethod/latin/dicttool/DictionaryMaker.java index 4f8874985..2cdd83e96 100644 --- a/tools/dicttool/src/com/android/inputmethod/latin/dicttool/DictionaryMaker.java +++ b/tools/dicttool/src/com/android/inputmethod/latin/dicttool/DictionaryMaker.java @@ -22,6 +22,7 @@ import com.android.inputmethod.latin.makedict.FusionDictionary; import com.android.inputmethod.latin.makedict.MakedictLog; import com.android.inputmethod.latin.makedict.UnsupportedFormatException; +import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; @@ -328,6 +329,7 @@ public class DictionaryMaker { */ private static void writeXmlDictionary(final String outputFilename, final FusionDictionary dict) throws FileNotFoundException, IOException { - XmlDictInputOutput.writeDictionaryXml(new FileWriter(outputFilename), dict); + XmlDictInputOutput.writeDictionaryXml(new BufferedWriter(new FileWriter(outputFilename)), + dict); } }