| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.sevenzipjbinding.impl.OutArchiveImpl<T>
T - the type of the item callback implementationpublic class OutArchiveImpl<T extends IOutItemBase>
Common archive create and update class.
OutArchive7zImpl, 
OutArchiveZipImpl, 
OutArchiveGZipImpl, 
OutArchiveBZip2Impl, 
OutArchiveTarImpl| Constructor Summary | |
|---|---|
| OutArchiveImpl() | |
| Method Summary | |
|---|---|
|  void | close() | 
|  void | createArchive(ISequentialOutStream outStream,
              int numberOfItems,
              IOutCreateCallback<? extends T> outCreateCallback)Create new archive. | 
|  ArchiveFormat | getArchiveFormat()Return archive format used with this instance of IOutStream | 
|  IInArchive | getConnectedInArchive()Get connected IInArchivefor update operations. | 
|  java.io.PrintStream | getTracePrintStream()Alternative PrintStreamfor trace output. | 
|  boolean | isTrace()If true, print trace message during compress and update operation to theSystem.outorIOutArchiveBase.getTracePrintStream(). | 
|  void | setTrace(boolean trace)If true, print trace message during compress and update operation to theSystem.outorIOutArchiveBase.getTracePrintStream(). | 
|  void | setTracePrintStream(java.io.PrintStream tracePrintStream)Set alternative PrintStreamfor trace output. | 
|  void | updateItems(ISequentialOutStream outStream,
            int numberOfItems,
            IOutCreateCallback<T> outUpdateCallback)Update items in archive (actually creating a new one based on the old one). | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public OutArchiveImpl()
| Method Detail | 
|---|
public ArchiveFormat getArchiveFormat()
IOutStream
getArchiveFormat in interface IOutCreateArchive<T extends IOutItemBase>getArchiveFormat in interface IOutUpdateArchive<T extends IOutItemBase>IOutStream
public void close()
           throws java.io.IOException
close in interface java.io.Closeablejava.io.IOException
public void updateItems(ISequentialOutStream outStream,
                        int numberOfItems,
                        IOutCreateCallback<T> outUpdateCallback)
                 throws SevenZipException
updateItems in interface IOutUpdateArchive<T extends IOutItemBase>outStream - output stream to get the new archivenumberOfItems - number of items in the new archiveoutUpdateCallback - create call back object to provide more information for archive update operation.
SevenZipException - 7-Zip or 7-Zip-JBinding error occur. Use SevenZipException.printStackTraceExtended() to get
             stack traces of this SevenZipException and of the all thrown 'cause by' exceptions.
public void createArchive(ISequentialOutStream outStream,
                          int numberOfItems,
                          IOutCreateCallback<? extends T> outCreateCallback)
                   throws SevenZipException
IInArchive.getConnectedOutArchive() to get an instance of the IOutUpdateArchive interface.outCreateCallback is designed to provide necessary information about new archive items and to
 receive information about the progress of the operation.IOutStream interface
 (instead of the ISequentialOutStream) to be passed.
createArchive in interface IOutCreateArchive<T extends IOutItemBase>outStream - output stream to receive the new archive. An implementation of the IOutStream interface is
            required for some archive formats.numberOfItems - number of items in the new archiveoutCreateCallback - callback object to exchange information about the archive create operation.
SevenZipException - 7-Zip or 7-Zip-JBinding error occur. Use SevenZipException.printStackTraceExtended() to get
             stack traces of this SevenZipException and of the all thrown 'cause by' exceptions.public IInArchive getConnectedInArchive()
IInArchive for update operations.
getConnectedInArchive in interface IOutUpdateArchive<T extends IOutItemBase>IInArchive for update operationspublic void setTracePrintStream(java.io.PrintStream tracePrintStream)
PrintStream for trace output. Default: System.out.
setTracePrintStream in interface IOutArchiveBasetracePrintStream - instance of the PrintStream.IOutArchiveBase.setTrace(boolean)public java.io.PrintStream getTracePrintStream()
PrintStream for trace output. Default: System.out.
getTracePrintStream in interface IOutArchiveBasePrintStream for trace outputIOutArchiveBase.setTrace(boolean)public void setTrace(boolean trace)
true, print trace message during compress and update operation to the System.out or
 IOutArchiveBase.getTracePrintStream(). Default: false
setTrace in interface IOutArchiveBasetrace - true - output trace messages, false be quite.IOutArchiveBase.setTracePrintStream(PrintStream)public boolean isTrace()
true, print trace message during compress and update operation to the System.out or
 IOutArchiveBase.getTracePrintStream(). Default: false
isTrace in interface IOutArchiveBasetrue - output trace messages, false be quite.IOutArchiveBase.setTracePrintStream(PrintStream)| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||