X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2Fengine%2FDictionary.java;h=4543b7bbc7866a8f0ad022cc52225cfcb26e032e;hb=0d6b69d8819c937eed8a911f491146b76a9b1300;hp=151bad6b66bfb781fa160c8c2cebe09cc6d935aa;hpb=49583e178d3673fd1cade2f306d97303ffbd4a0a;p=Dictionary.git diff --git a/src/com/hughes/android/dictionary/engine/Dictionary.java b/src/com/hughes/android/dictionary/engine/Dictionary.java index 151bad6..4543b7b 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.position(), dictFileVersion, dictInfo + " html: "), - CACHE_SIZE); + RAFList.create(ch, new HtmlEntry.Serializer(this, ch), ch.position(), dictFileVersion, dictInfo + " html: "), + CACHE_SIZE, true); } else { htmlEntries = Collections.emptyList(); } @@ -130,7 +130,7 @@ public class Dictionary implements RAFSerializable { System.out.println("text start: " + raf.getFilePointer()); RAFList.write(raf, textEntries, new TextEntry.Serializer(this)); System.out.println("html index start: " + raf.getFilePointer()); - RAFList.write(raf, htmlEntries, new HtmlEntry.Serializer(this), 64, true); + RAFList.write(raf, htmlEntries, new HtmlEntry.Serializer(this, null), 64, true); System.out.println("html data start: " + raf.getFilePointer()); assert htmlData == null; RAFList.write(raf, htmlEntries, new HtmlEntry.DataSerializer(), 128, true);