net.sf.sevenzipjbinding
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
 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.ISequentialOutStream
write
 
Methods inherited from interface net.sf.sevenzipjbinding.ISeekableStream
seek
 

Method Detail

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 are no guarantee, that there are no further call back methods will get called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such as ISevenZipInArchive.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.