| java.lang.Object java.io.OutputStream com.quadcap.sql.file.RandomAccessOutputStream
RandomAccessOutputStream | public class RandomAccessOutputStream extends OutputStream (Code) | | An output stream attached to a RandomAccess object.
author: Stan Bailes |
Method Summary | |
public void | close() Closes this output stream and releases any system resources
associated with this stream. | public void | flush() Flushes this output stream and forces any buffered output bytes
to be written out. | public int | getPosition() | public void | resize(long size) | public void | setPosition(int p) | public long | size() | public void | write(int b) Writes the specified byte to this output stream. | public void | write(byte b) Writes b.length bytes from the specified byte array
to this output stream. | public void | write(byte b, int off, int len) Writes len bytes from the specified byte array
starting at offset off to this output stream. |
close | public void close() throws IOException(Code) | | Closes this output stream and releases any system resources
associated with this stream.
The close method of OutputStream does nothing.
exception: IOException - if an I/O error occurs. |
flush | public void flush() throws IOException(Code) | | Flushes this output stream and forces any buffered output bytes
to be written out.
The flush method of RandomAccessOutputStream
does nothing. Perhaps we could call the flush method of the underlying
BlockFile?
exception: IOException - if an I/O error occurs. |
getPosition | public int getPosition()(Code) | | |
setPosition | public void setPosition(int p)(Code) | | |
write | public void write(int b) throws IOException(Code) | | Writes the specified byte to this output stream.
Subclasses of OutputStream must provide an
implementation for this method.
Parameters: b - the byte . exception: IOException - if an I/O error occurs. |
write | public void write(byte b) throws IOException(Code) | | Writes b.length bytes from the specified byte array
to this output stream.
The write method of OutputStream calls
the write method of three arguments with the three
arguments b , 0 , and
b.length .
Parameters: b - the data. exception: IOException - if an I/O error occurs. |
write | public void write(byte b, int off, int len) throws IOException(Code) | | Writes len bytes from the specified byte array
starting at offset off to this output stream.
The write method of OutputStream calls
the write method of one argument on each of the bytes to be
written out. Subclasses are encouraged to override this method and
provide a more efficient implementation.
Parameters: b - the data. Parameters: off - the start offset in the data. Parameters: len - the number of bytes to write. exception: IOException - if an I/O error occurs. |
|
|