gate.creole.annic.apache.lucene.store
Class FSOutputStream

java.lang.Object
  extended by gate.creole.annic.apache.lucene.store.OutputStream
      extended by gate.creole.annic.apache.lucene.store.FSOutputStream

final class FSOutputStream
extends OutputStream


Field Summary
(package private)  RandomAccessFile file
           
 
Fields inherited from class gate.creole.annic.apache.lucene.store.OutputStream
BUFFER_SIZE
 
Constructor Summary
FSOutputStream(File path)
           
 
Method Summary
 void close()
          Closes this stream to further operations.
protected  void finalize()
           
 void flushBuffer(byte[] b, int size)
          output methods:
 long length()
          The number of bytes in the file.
 void seek(long pos)
          Random-access methods
 
Methods inherited from class gate.creole.annic.apache.lucene.store.OutputStream
flush, getFilePointer, writeByte, writeBytes, writeChars, writeInt, writeLong, writeString, writeVInt, writeVLong
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

RandomAccessFile file
Constructor Detail

FSOutputStream

public FSOutputStream(File path)
               throws IOException
Throws:
IOException
Method Detail

flushBuffer

public final void flushBuffer(byte[] b,
                              int size)
                       throws IOException
output methods:

Specified by:
flushBuffer in class OutputStream
Parameters:
b - the bytes to write
size - the number of bytes to write
Throws:
IOException

close

public final void close()
                 throws IOException
Description copied from class: OutputStream
Closes this stream to further operations.

Overrides:
close in class OutputStream
Throws:
IOException

seek

public final void seek(long pos)
                throws IOException
Random-access methods

Overrides:
seek in class OutputStream
Throws:
IOException
See Also:
OutputStream.getFilePointer()

length

public final long length()
                  throws IOException
Description copied from class: OutputStream
The number of bytes in the file.

Specified by:
length in class OutputStream
Throws:
IOException

finalize

protected final void finalize()
                       throws IOException
Overrides:
finalize in class Object
Throws:
IOException