Class ZipIoUtil
java.lang.Object
org.apache.commons.compress.archivers.zip.ZipIoUtil
IO utilities for Zip operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidwriteAll(FileChannel channel, ByteBuffer buffer, long position) Writes all bytes in a buffer to a channel at specified position.(package private) static voidwriteAll(WritableByteChannel channel, ByteBuffer buffer) Writes all bytes in a buffer to a channel.
-
Constructor Details
-
ZipIoUtil
private ZipIoUtil()
-
-
Method Details
-
writeAll
Writes all bytes in a buffer to a channel at specified position.- Parameters:
channel- The target channel.buffer- The source bytes.position- The file position at which the transfer is to begin; must be non-negative- Throws:
IOException- If some I/O error occurs or fails or fails to write all bytes.
-
writeAll
Writes all bytes in a buffer to a channel.- Parameters:
channel- The target channel.buffer- The source bytes.- Throws:
IOException- If some I/O error occurs or fails or fails to write all bytes.
-