Interface IOutStream

All Superinterfaces:
ISeekableStream, ISequentialOutStream
All Known Implementing Classes:
ByteArrayStream, RandomAccessFileOutStream

public interface IOutStream extends ISequentialOutStream, ISeekableStream
OutStream interface used to operate with seekable output streams (random access streams)
Since:
9.20-2.00
Author:
Boris Brodski
  • Field Summary

    Fields inherited from interface net.sf.sevenzipjbinding.ISeekableStream

    SEEK_CUR, SEEK_END, SEEK_SET
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setSize(long newSize)
    Set new size for the out stream.

    Note: depending on the archive format and the data size this method may be called from different threads.

    Methods inherited from interface net.sf.sevenzipjbinding.ISeekableStream

    seek

    Methods inherited from interface net.sf.sevenzipjbinding.ISequentialOutStream

    write
  • Method Details

    • setSize

      void setSize(long newSize) throws SevenZipException
      Set new size for the out stream.

      Note: depending on the archive format and the data size this method may be called from different threads. Synchronized implementation may be required.
      Parameters:
      newSize - new size
      Throws:
      SevenZipException - in error case. If this method ends with an exception, the current operation will be reported to 7-Zip as failed. There is no guarantee that no further callback methods will be called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such as IInArchive.extract() or SevenZip.openInArchive(). Up to four exceptions depending on the situation can be saved for further analysis. See SevenZipException and SevenZipException.printStackTraceExtended() for details.