]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/AbstractEntry.java
Switch from RandomAccessFile to DataInput/DataOutput.
[Dictionary.git] / src / com / hughes / android / dictionary / engine / AbstractEntry.java
index 931f9a1bf3e4a53ae38384e773caf9072daa1cb5..2db0a3e4a83c3c4c8c24c5163e7b950ef374ada0 100644 (file)
@@ -16,8 +16,9 @@ package com.hughes.android.dictionary.engine;
 
 import com.hughes.util.IndexedObject;
 
+import java.io.DataInput;
+import java.io.DataOutput;
 import java.io.IOException;
-import java.io.RandomAccessFile;
 
 public abstract class AbstractEntry extends IndexedObject {
 
@@ -28,7 +29,7 @@ public abstract class AbstractEntry extends IndexedObject {
         this.entrySource = entrySource;
     }
 
-    public AbstractEntry(Dictionary dictionary, RandomAccessFile raf, final int index)
+    public AbstractEntry(Dictionary dictionary, DataInput raf, final int index)
             throws IOException {
         super(index);
         if (dictionary.dictFileVersion >= 1) {
@@ -39,7 +40,7 @@ public abstract class AbstractEntry extends IndexedObject {
         }
     }
 
-    public void write(RandomAccessFile raf) throws IOException {
+    public void write(DataOutput raf) throws IOException {
         raf.writeShort(entrySource.index());
     }