RandomAccessOutputStream implementation for SeekableByteChannel.
| Modifier and Type | Field and Description |
|---|---|
| private final SeekableByteChannel |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | close()
Overrides java. Implements java. |
| public synchronized long | position()
Implements abstract org. |
| public synchronized void | write(final byte[]
the data. b, final int the start offset in the data. off, final int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public synchronized void | writeFully(final byte[]
data to write b, final int offset of the start of data in param b off, final int the length of data to write len, final long position in the stream position)Implements abstract org. |
| channel | back to summary |
|---|---|
| private final SeekableByteChannel channel | |
| SeekableChannelRandomAccessOutputStream | back to summary |
|---|---|
| pack-priv SeekableChannelRandomAccessOutputStream(final SeekableByteChannel channel) | |
| close | back to summary |
|---|---|
| public synchronized void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| position | back to summary |
|---|---|
| public synchronized long position() throws IOException Implements abstract org. Doc from org. Provides current position in output.
| |
| write | back to summary |
|---|---|
| public synchronized void write(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| writeFully | back to summary |
|---|---|
| public synchronized void writeFully(final byte[] b, final int off, final int len, final long position) throws IOException Implements abstract org. Doc from org. Writes given data to specific position.
| |