TrueZIP Driver ZIP 7.0

de.schlichtherle.truezip.fs.archive.zip
Class ZipOutputShop.StoredEntryOutputStream

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

private class ZipOutputShop.StoredEntryOutputStream
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  IOPool.Entry<?> temp
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
ZipOutputShop.StoredEntryOutputStream(IOPool.Entry<?> temp, ZipArchiveEntry entry)
           
 
Method Summary
 void close()
           
(package private)  void store()
           
 
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 IOPool.Entry<?> temp

closed

private boolean closed
Constructor Detail

ZipOutputShop.StoredEntryOutputStream

ZipOutputShop.StoredEntryOutputStream(IOPool.Entry<?> temp,
                                      ZipArchiveEntry entry)
                                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

store

void store()
     throws IOException
Throws:
IOException

TrueZIP Driver ZIP 7.0

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