TrueZIP 6.8.2

de.schlichtherle.io.archive.zip
Class ZipOutputArchive.TempEntryOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.util.zip.CheckedOutputStream
              extended by de.schlichtherle.io.archive.zip.ZipOutputArchive.TempEntryOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
ZipOutputArchive

private class ZipOutputArchive.TempEntryOutputStream
extends CheckedOutputStream

This entry output stream writes the entry to a temporary file. When the stream is closed, the temporary file is then copied to this output stream and finally deleted.


Field Summary
private  boolean closed
           
private  File temp
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
ZipOutputArchive.TempEntryOutputStream(ZipEntry entry, File temp)
           
 
Method Summary
 void close()
           
 
Methods inherited from class java.util.zip.CheckedOutputStream
getChecksum, write, write
 
Methods inherited from class java.io.FilterOutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

temp

private final File temp

closed

private boolean closed
Constructor Detail

ZipOutputArchive.TempEntryOutputStream

public ZipOutputArchive.TempEntryOutputStream(ZipEntry entry,
                                              File temp)
                                       throws IOException
Throws:
IOException
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FilterOutputStream
Throws:
IOException

TrueZIP 6.8.2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.