1 package com.hughes.android.dictionary;
3 import java.io.IOException;
4 import java.io.RandomAccessFile;
6 import com.hughes.util.raf.RAFFactory;
7 import com.hughes.util.raf.RAFSerializable;
9 public interface Entry extends RAFSerializable<Entry> {
11 public static final RAFFactory<Entry> RAF_FACTORY = new RAFFactory<Entry>() {
12 public Entry create(RandomAccessFile raf) throws IOException {
13 final byte type = raf.readByte();
16 return SimpleEntry.RAF_FACTORY.create(raf);
18 throw new RuntimeException("Invalid entry type: " + type);