]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/PairEntry.java
go
[Dictionary.git] / src / com / hughes / android / dictionary / engine / PairEntry.java
index efdfa002c800861ab0ed5988b2ef692edfb8d1d2..e22969e3fe21dc1b41ea13fa4f7af32b07892057 100644 (file)
@@ -4,7 +4,29 @@ import java.io.IOException;
 import java.io.RandomAccessFile;
 import java.util.List;
 
-public class PairEntry extends Entry {
+import com.hughes.util.raf.RAFSerializable;
+import com.hughes.util.raf.RAFSerializer;
+
+public class PairEntry extends Entry implements RAFSerializable<PairEntry> {
+  
+  public PairEntry(final RandomAccessFile raf) {
+  }
+  @Override
+  public void write(RandomAccessFile raf) throws IOException {
+  }
+  
+  static final RAFSerializer<PairEntry> SERIALIZER = new RAFSerializer<PairEntry>() {
+    @Override
+    public PairEntry read(RandomAccessFile raf) throws IOException {
+      return new PairEntry(raf);
+    }
+
+    @Override
+    public void write(RandomAccessFile raf, PairEntry t) throws IOException {
+      t.write(raf);
+    }
+  };
+  
 
   @Override
   List<String> getMainTokens() {
@@ -15,16 +37,28 @@ public class PairEntry extends Entry {
   List<String> getOtherTokens() {
     return null;
   }
+  
+  
 
   
-  public static class Row extends RowWithIndex {
+  public static class Row extends RowBase {
+    
     Row(final RandomAccessFile raf, final int thisRowIndex,
         final Index index) throws IOException {
       super(raf, thisRowIndex, index);
     }
+    
     public PairEntry getEntry() {
       return index.dict.pairEntries.get(referenceIndex);
     }
+    
+    @Override
+    public Object draw(String searchText) {
+      // TODO Auto-generated method stub
+      return null;
+    }
   }
 
+
+
 }