com.lucene.store
Class OutputStream

java.lang.Object
  |
  +--com.lucene.store.OutputStream

public abstract class OutputStream
extends Object

A random-access output stream


Constructor Summary
OutputStream()
           
 
Method Summary
 void close()
           
protected  void flush()
           
protected abstract  void flushBuffer(byte[] b, int len)
           
 long getFilePointer()
          RandomAccessFile-like methods @see java.io.RandomAccessFile
abstract  long length()
           
 void seek(long pos)
           
 void writeByte(byte b)
          OutputStream-like methods @see java.io.InputStream
 void writeBytes(byte[] b, int length)
           
 void writeChars(String s, int start, int length)
           
 void writeInt(int i)
           
 void writeLong(long i)
           
 void writeString(String s)
           
 void writeVInt(int i)
           
 void writeVLong(long i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStream

public OutputStream()
Method Detail

writeByte

public final void writeByte(byte b)
                     throws IOException
OutputStream-like methods @see java.io.InputStream

writeBytes

public final void writeBytes(byte[] b,
                             int length)
                      throws IOException

writeInt

public final void writeInt(int i)
                    throws IOException

writeVInt

public final void writeVInt(int i)
                     throws IOException

writeLong

public final void writeLong(long i)
                     throws IOException

writeVLong

public final void writeVLong(long i)
                      throws IOException

writeString

public final void writeString(String s)
                       throws IOException

writeChars

public final void writeChars(String s,
                             int start,
                             int length)
                      throws IOException

flush

protected final void flush()
                    throws IOException

flushBuffer

protected abstract void flushBuffer(byte[] b,
                                    int len)
                             throws IOException

close

public void close()
           throws IOException

getFilePointer

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

seek

public void seek(long pos)
          throws IOException

length

public abstract long length()
                     throws IOException