org.apache.lucene.store
Class OutputStream

java.lang.Object
  |
  +--org.apache.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

IOException

writeBytes

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

writeInt

public final void writeInt(int i)
                    throws IOException
IOException

writeVInt

public final void writeVInt(int i)
                     throws IOException
IOException

writeLong

public final void writeLong(long i)
                     throws IOException
IOException

writeVLong

public final void writeVLong(long i)
                      throws IOException
IOException

writeString

public final void writeString(String s)
                       throws IOException
IOException

writeChars

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

flush

protected final void flush()
                    throws IOException
IOException

flushBuffer

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

close

public void close()
           throws IOException
IOException

getFilePointer

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

IOException

seek

public void seek(long pos)
          throws IOException
IOException

length

public abstract long length()
                     throws IOException
IOException


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