X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2Fengine%2FDictionary.java;h=0eb8007f07f9307fe0f44306e980d3f4f546d57b;hb=83d497f704ad1f8ba85190255d46a3fbe0e3c353;hp=3abe61e959f82d870acf576cb3b503574ae7fd30;hpb=f3f48901a1bc21bb9badc4174e2db7c96b8656ff;p=Dictionary.git diff --git a/src/com/hughes/android/dictionary/engine/Dictionary.java b/src/com/hughes/android/dictionary/engine/Dictionary.java index 3abe61e..0eb8007 100644 --- a/src/com/hughes/android/dictionary/engine/Dictionary.java +++ b/src/com/hughes/android/dictionary/engine/Dictionary.java @@ -88,14 +88,14 @@ public class Dictionary implements RAFSerializable { pairEntries = CachingList.create( RAFList.create(ch, new PairEntry.Serializer(this), ch.position(), dictFileVersion, dictInfo + " pairs: "), - CACHE_SIZE); + CACHE_SIZE, false); textEntries = CachingList.create( RAFList.create(ch, new TextEntry.Serializer(this), ch.position(), dictFileVersion, dictInfo + " text: "), - CACHE_SIZE); + CACHE_SIZE, true); if (dictFileVersion >= 5) { htmlEntries = CachingList.create( RAFList.create(ch, new HtmlEntry.Serializer(this, ch), ch.position(), dictFileVersion, dictInfo + " html: "), - CACHE_SIZE); + CACHE_SIZE, false); } else { htmlEntries = Collections.emptyList(); } @@ -107,8 +107,7 @@ public class Dictionary implements RAFSerializable { indices = CachingList.createFullyCached(RAFList.create(ch, new IndexSerializer(ch), ch.position(), dictFileVersion, dictInfo + " index: ")); } catch (RuntimeException e) { - final IOException ioe = new IOException("RuntimeException loading dictionary"); - ioe.initCause(e); + final IOException ioe = new IOException("RuntimeException loading dictionary", e); throw ioe; } final String end = raf.readUTF(); @@ -156,11 +155,11 @@ public class Dictionary implements RAFSerializable { public void write(DataOutput raf, Index t) throws IOException { t.write(raf); } - }; + } final RAFListSerializer htmlEntryIndexSerializer = new RAFListSerializer() { @Override - public void write(DataOutput raf, HtmlEntry t) throws IOException { + public void write(DataOutput raf, HtmlEntry t) { assert false; }