]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
use buffered stream
authorKeiron Liddle <keiron@apache.org>
Fri, 2 Aug 2002 06:31:24 +0000 (06:31 +0000)
committerKeiron Liddle <keiron@apache.org>
Fri, 2 Aug 2002 06:31:24 +0000 (06:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195047 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/layout/hyphenation/Hyphenator.java

index 20b0ee372e19d1f69c145f4ab4a256bb192758c2..23fe67337def4faaa69a51777c7ec78261041f21 100644 (file)
@@ -151,7 +151,7 @@ public class Hyphenator {
         if (hyphenFile.exists()) {
             ObjectInputStream ois = null;
             try {
-                ois = new ObjectInputStream(new FileInputStream(hyphenFile));
+                ois = new ObjectInputStream(new BufferedInputStream(new FileInputStream(hyphenFile)));
                 hTree = (HyphenationTree)ois.readObject();
             } catch (Exception e) {
                 e.printStackTrace();