java.lang.Object
org.apache.commons.compress.archivers.zip.ZipIoUtil

final class ZipIoUtil extends Object
IO utilities for Zip operations.
  • Constructor Details

    • ZipIoUtil

      private ZipIoUtil()
  • Method Details

    • writeAll

      static void writeAll(FileChannel channel, ByteBuffer buffer, long position) throws IOException
      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

      static void writeAll(WritableByteChannel channel, ByteBuffer buffer) throws IOException
      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.