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
           
 
Constructor Summary
InputStream()
           
 
Method Summary
abstract  void close()
           
 long getFilePointer()
          RandomAccessFile-like methods @see java.io.RandomAccessFile
 long length()
           
 byte readByte()
          InputStream-like methods @see java.io.InputStream
 void readBytes(byte[] b, int offset, int len)
           
 void readChars(char[] buffer, int start, int length)
           
 int readInt()
           
protected abstract  void readInternal(byte[] b, int offset, int length)
           
 long readLong()
           
 String readString()
           
 int readVInt()
           
 long readVLong()
           
protected  void refill()
           
 void seek(long pos)
           
protected abstract  void seekInternal(long pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

protected long length
Constructor Detail

InputStream

public InputStream()
Method Detail

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()