com.lucene.store
Class InputStream
java.lang.Object
|
+--com.lucene.store.InputStream
- public abstract class InputStream
- extends Object
A random-access input stream
Field Summary |
protected long |
length
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
length
protected long length
InputStream
public InputStream()
readByte
public final byte readByte()
throws IOException
- InputStream-like methods @see java.io.InputStream
readBytes
public final void readBytes(byte[] b,
int offset,
int len)
throws IOException
readInt
public final int readInt()
throws IOException
readVInt
public final int readVInt()
throws IOException
readLong
public final long readLong()
throws IOException
readVLong
public final long readVLong()
throws IOException
readString
public final String readString()
throws IOException
readChars
public final void readChars(char[] buffer,
int start,
int length)
throws IOException
refill
protected final void refill()
throws IOException
readInternal
protected abstract void readInternal(byte[] b,
int offset,
int length)
throws IOException
close
public abstract void close()
throws IOException
getFilePointer
public final long getFilePointer()
throws IOException
- RandomAccessFile-like methods @see java.io.RandomAccessFile
seek
public final void seek(long pos)
throws IOException
seekInternal
protected abstract void seekInternal(long pos)
throws IOException
length
public final long length()