Package net.sf.sevenzipjbinding
Interface IOutStream
- All Superinterfaces:
ISeekableStream,ISequentialOutStream
- All Known Implementing Classes:
ByteArrayStream,RandomAccessFileOutStream
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 TypeMethodDescriptionvoidsetSize(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
seekMethods inherited from interface net.sf.sevenzipjbinding.ISequentialOutStream
write
-
Method Details
-
setSize
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 asIInArchive.extract()orSevenZip.openInArchive(). Up to four exceptions depending on the situation can be saved for further analysis. SeeSevenZipExceptionandSevenZipException.printStackTraceExtended()for details.
-