RandomAccessOutputStream implementation based on a file.
| Modifier and Type | Field and Description |
|---|---|
| private final FileChannel | |
| private long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv FileChannel | |
| public 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 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 atPosition)Implements abstract org. |
| channel | back to summary |
|---|---|
| private final FileChannel channel | |
| position | back to summary |
|---|---|
| private long position | |
| FileRandomAccessOutputStream | back to summary |
|---|---|
| pack-priv FileRandomAccessOutputStream(final FileChannel channel) | |
| FileRandomAccessOutputStream | back to summary |
|---|---|
| pack-priv FileRandomAccessOutputStream(final Path file) throws IOException | |
| FileRandomAccessOutputStream | back to summary |
|---|---|
| pack-priv FileRandomAccessOutputStream(final Path file, final OpenOption... options) throws IOException | |
| channel | back to summary |
|---|---|
| pack-priv FileChannel channel() | |
| close | back to summary |
|---|---|
| public 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() 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 void writeFully(final byte[] b, final int off, final int len, final long atPosition) throws IOException Implements abstract org. Doc from org. Writes given data to specific position.
| |