gate.creole.annic.apache.lucene.store
Class FSOutputStream
java.lang.Object
gate.creole.annic.apache.lucene.store.OutputStream
gate.creole.annic.apache.lucene.store.FSOutputStream
final class FSOutputStream
- extends OutputStream
|
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 |
file
RandomAccessFile file
FSOutputStream
public FSOutputStream(File path)
throws IOException
- Throws:
IOException
flushBuffer
public final void flushBuffer(byte[] b,
int size)
throws IOException
- output methods:
- Specified by:
flushBuffer in class OutputStream
- Parameters:
b - the bytes to writesize - 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