RAFList.write(raf, pairEntries, new PairEntry.Serializer(this), 64, true);
System.out.println("text start: " + raf.getFilePointer());
RAFList.write(raf, textEntries, new TextEntry.Serializer(this));
- System.out.println("html start: " + raf.getFilePointer());
+ System.out.println("html index start: " + raf.getFilePointer());
RAFList.write(raf, htmlEntries, new HtmlEntry.Serializer(this), 64, true);
+ System.out.println("html data start: " + raf.getFilePointer());
assert htmlData == null;
RAFList.write(raf, htmlEntries, new HtmlEntry.DataSerializer(), 128, true);
System.out.println("indices start: " + raf.getFilePointer());
raf.close();
return dictionaryInfo;
} catch (IOException e) {
- return null;
+ final DictionaryInfo dictionaryInfo = new DictionaryInfo();
+ dictionaryInfo.uncompressedFilename = file.getName();
+ dictionaryInfo.uncompressedBytes = file.length();
+ return dictionaryInfo;
} finally {
if (raf != null) {
try {