- java.lang.Object
-
- kala.compress.archivers.zip.ZipIoUtil
-
class ZipIoUtil extends java.lang.ObjectIO utilities for Zip operations.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateZipIoUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidwriteFully(java.nio.channels.SeekableByteChannel channel, java.nio.ByteBuffer buf)Writes full buffer to channel.(package private) static voidwriteFullyAt(java.nio.channels.FileChannel channel, java.nio.ByteBuffer buf, long position)Writes full buffer to channel at specified position.
-
-
-
Method Detail
-
writeFully
static void writeFully(java.nio.channels.SeekableByteChannel channel, java.nio.ByteBuffer buf) throws java.io.IOExceptionWrites full buffer to channel.- Parameters:
channel- channel to write tobuf- buffer to write- Throws:
java.io.IOException- when writing fails or fails to write fully
-
writeFullyAt
static void writeFullyAt(java.nio.channels.FileChannel channel, java.nio.ByteBuffer buf, long position) throws java.io.IOExceptionWrites full buffer to channel at specified position.- Parameters:
channel- channel to write tobuf- buffer to writeposition- position to write at- Throws:
java.io.IOException- when writing fails or fails to write fully
-
-