From: Keiron Liddle Date: Fri, 2 Aug 2002 06:31:24 +0000 (+0000) Subject: use buffered stream X-Git-Tag: Alt-Design-integration-base~481 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cadb1a7a9b611e322da64c2f0b2726d4f472bcfd;p=xmlgraphics-fop.git use buffered stream git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195047 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/layout/hyphenation/Hyphenator.java b/src/org/apache/fop/layout/hyphenation/Hyphenator.java index 20b0ee372..23fe67337 100644 --- a/src/org/apache/fop/layout/hyphenation/Hyphenator.java +++ b/src/org/apache/fop/layout/hyphenation/Hyphenator.java @@ -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();