1 16 package org.outerj.daisy.ftindex; 17 18 import java.io.IOException ; 19 20 public class EmptyHits implements Hits { 21 public long docId(int n) { 22 throw new IndexOutOfBoundsException ("Invalid hit number: " + n); 23 } 24 25 public long branchId(int n) throws IOException { 26 throw new IndexOutOfBoundsException ("Invalid hit number: " + n); 27 } 28 29 public long languageId(int n) throws IOException { 30 throw new IndexOutOfBoundsException ("Invalid hit number: " + n); 31 } 32 33 public int length() { 34 return 0; 35 } 36 37 public float score(int n) { 38 throw new IndexOutOfBoundsException ("Invalid hit number: " + n); 39 } 40 } 41 | Popular Tags |