org.apache.lucene.store
Class InputStream

java.lang.Object
  |
  +--org.apache.lucene.store.InputStream
All Implemented Interfaces:
Cloneable

public abstract class InputStream
extends Object
implements Cloneable

A random-access input stream


Field Summary
protected  long length
           
 
Constructor Summary
InputStream()
           
 
Method Summary
 Object clone()
           
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
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

IOException

readBytes

public final void readBytes(byte[] b,
                            int offset,
                            int len)
                     throws IOException
IOException

readInt

public final int readInt()
                  throws IOException
IOException

readVInt

public final int readVInt()
                   throws IOException
IOException

readLong

public final long readLong()
                    throws IOException
IOException

readVLong

public final long readVLong()
                     throws IOException
IOException

readString

public final String readString()
                        throws IOException
IOException

readChars

public final void readChars(char[] buffer,
                            int start,
                            int length)
                     throws IOException
IOException

refill

protected final void refill()
                     throws IOException
IOException

readInternal

protected abstract void readInternal(byte[] b,
                                     int offset,
                                     int length)
                              throws IOException
IOException

close

public abstract void close()
                    throws IOException
IOException

getFilePointer

public final long getFilePointer()
RandomAccessFile-like methods @see java.io.RandomAccessFile


seek

public final void seek(long pos)
                throws IOException
IOException

seekInternal

protected abstract void seekInternal(long pos)
                              throws IOException
IOException

length

public final long length()

clone

public Object clone()
Overrides:
clone in class Object


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.