Class ZipIoUtil


  • class ZipIoUtil
    extends java.lang.Object
    IO utilities for Zip operations.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ZipIoUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void writeFully​(java.nio.channels.SeekableByteChannel channel, java.nio.ByteBuffer buf)
      Writes full buffer to channel.
      (package private) static void writeFullyAt​(java.nio.channels.FileChannel channel, java.nio.ByteBuffer buf, long position)
      Writes full buffer to channel at specified position.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZipIoUtil

        private ZipIoUtil()
    • Method Detail

      • writeFully

        static void writeFully​(java.nio.channels.SeekableByteChannel channel,
                               java.nio.ByteBuffer buf)
                        throws java.io.IOException
        Writes full buffer to channel.
        Parameters:
        channel - channel to write to
        buf - 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.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:
        java.io.IOException - when writing fails or fails to write fully