TrueZIP 6.8.2

de.schlichtherle.io.archive.spi
Class MultiplexedOutputArchive.TempEntryOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FileOutputStream
          extended by de.schlichtherle.io.archive.spi.MultiplexedOutputArchive.TempEntryOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
MultiplexedOutputArchive

private class MultiplexedOutputArchive.TempEntryOutputStream
extends FileOutputStream

This entry output stream writes the entry to a temporary file. When the stream is closed, the temporary file is then copied to the target output archive and finally deleted unless the target is still busy.


Field Summary
private  boolean closed
           
private  ArchiveEntry entry
           
private  ArchiveEntry srcEntry
           
private  File temp
           
 
Constructor Summary
private MultiplexedOutputArchive.TempEntryOutputStream(ArchiveEntry entry, ArchiveEntry srcEntry, File temp)
           
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.FileOutputStream
finalize, getChannel, getFD, write, write, write
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entry

private final ArchiveEntry entry

srcEntry

private final ArchiveEntry srcEntry

temp

private final File temp

closed

private boolean closed
Constructor Detail

MultiplexedOutputArchive.TempEntryOutputStream

private MultiplexedOutputArchive.TempEntryOutputStream(ArchiveEntry entry,
                                                       ArchiveEntry srcEntry,
                                                       File temp)
                                                throws IOException
Throws:
IOException
Method Detail

close

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

TrueZIP 6.8.2

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