Class SeekableChannelRandomAccessOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.compress.archivers.zip.RandomAccessOutputStream
org.apache.commons.compress.archivers.zip.SeekableChannelRandomAccessOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
RandomAccessOutputStream implementation for SeekableByteChannel.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.compress.archivers.zip.RandomAccessOutputStream
write, writeAllMethods inherited from class java.io.OutputStream
flush, write
-
Field Details
-
channel
-
-
Constructor Details
-
SeekableChannelRandomAccessOutputStream
SeekableChannelRandomAccessOutputStream(SeekableByteChannel channel)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
position
Description copied from class:RandomAccessOutputStreamGets the current position in this stream.- Specified by:
positionin classRandomAccessOutputStream- Returns:
- current position.
- Throws:
IOException- if an I/O error occurs
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
writeAll
Description copied from class:RandomAccessOutputStreamWrites all given bytes at a position.- Specified by:
writeAllin classRandomAccessOutputStream- Parameters:
b- data to writeoff- offset of the start of data in param byteslen- the length of data to writeposition- position in the stream- Throws:
IOException- if an I/O error occurs.
-