1 package com.hughes.android.dictionary.engine;
3 import java.io.IOException;
4 import java.io.PrintStream;
5 import java.io.RandomAccessFile;
7 public class TokenRow extends RowBase {
9 TokenRow(final RandomAccessFile raf, final int thisRowIndex, final Index index) throws IOException {
10 super(raf, thisRowIndex, index);
13 TokenRow(final int referenceIndex, final int thisRowIndex, final Index index) {
14 super(referenceIndex, thisRowIndex, index);
18 public TokenRow getTokenRow(final boolean search) {
23 public void setTokenRow(TokenRow tokenRow) {
24 throw new RuntimeException("Shouldn't be setting TokenRow's TokenRow!");
27 public String getToken() {
28 return index.sortedIndexEntries.get(referenceIndex).token;
32 public Object draw(String searchText) {
33 // TODO Auto-generated method stub
38 public void print(final PrintStream out) {
39 out.println(getToken());