Class ZipMultiChunker

    • Method Detail

      • createMultiChunk

        public MultiChunk createMultiChunk​(java.io.InputStream is)
        Description copied from class: MultiChunker
        Open existing multichunk in read mode using an underlying input stream.

        Using this method only allows reading from the returned multichunk. The underlying input stream is opened and can be used to retrieve chunk data.

        Specified by:
        createMultiChunk in class MultiChunker
        Parameters:
        is - InputStream to initialize an existing multichunk for read-operations only
        Returns:
        Returns an existing multichunk object that allows read operations only
      • createMultiChunk

        public MultiChunk createMultiChunk​(java.io.File file)
                                    throws java.io.IOException
        Description copied from class: MultiChunker
        Open existing multichunk in read mode using an underlying file.

        Using this method only allows reading from the returned multichunk. The underlying input stream is opened and can be used to retrieve chunk data.

        Specified by:
        createMultiChunk in class MultiChunker
        Parameters:
        file - File to read into a multichunk for read-operations only
        Returns:
        Returns an existing multichunk object that allows read operations only
        Throws:
        java.io.IOException
      • createMultiChunk

        public MultiChunk createMultiChunk​(MultiChunkEntry.MultiChunkId id,
                                           java.io.OutputStream os)
                                    throws java.io.IOException
        Description copied from class: MultiChunker
        Create a new multichunk in write mode.

        Using this method only allows writing to the returned multichunk. The resulting data will be written to the underlying output stream given in the parameter.

        Specified by:
        createMultiChunk in class MultiChunker
        Parameters:
        id - Identifier of the newly created multichunk
        os - Underlying output stream to write the new multichunk to
        Returns:
        Returns a new multichunk object which can only be used for writing
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Description copied from class: MultiChunker
        Returns a comprehensive string representation of a multichunker
        Specified by:
        toString in class MultiChunker