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

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

    • ZipIoUtil

      private ZipIoUtil()
  • Method Details

    • writeFully

      static void writeFully(SeekableByteChannel channel, ByteBuffer buf) throws IOException
      Writes full buffer to channel.
      Parameters:
      channel - channel to write to
      buf - buffer to write
      Throws:
      IOException - when writing fails or fails to write fully
    • writeFullyAt

      static void writeFullyAt(FileChannel channel, ByteBuffer buf, long position) throws IOException
      Writes full buffer to channel at specified position.
      Parameters:
      channel - channel to write to
      buf - buffer to write
      position - position to write at
      Throws:
      IOException - when writing fails or fails to write fully