de.schlichtherle.truezip.fs.archive
Class FsMultiplexedArchiveOutputShop.TempEntryOutputStream
java.lang.Object
java.io.OutputStream
de.schlichtherle.truezip.io.DecoratingOutputStream
de.schlichtherle.truezip.fs.archive.FsMultiplexedArchiveOutputShop.TempEntryOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Enclosing class:
- FsMultiplexedArchiveOutputShop<AE extends FsArchiveEntry>
private class FsMultiplexedArchiveOutputShop.TempEntryOutputStream
- extends DecoratingOutputStream
This entry output stream writes the archive entry to a temporary file.
When the stream is closed, the temporary file is then copied to the
output archive and finally deleted unless the output output
archive is still busy.
temp
private final IOPool.Entry<?> temp
output
private final OutputSocket<? extends AE extends FsArchiveEntry> output
local
private final AE extends FsArchiveEntry local
peer
private final Entry peer
input
private final InputSocket<?> input
closed
private boolean closed
FsMultiplexedArchiveOutputShop.TempEntryOutputStream
FsMultiplexedArchiveOutputShop.TempEntryOutputStream(@NonNull
OutputSocket<? extends AE> output,
@NonNull
IOPool.Entry<?> temp)
throws IOException
- Throws:
IOException
getTarget
public AE getTarget()
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class DecoratingOutputStream
- Throws:
IOException
store
private boolean store(boolean discard)
throws IOException
- Throws:
IOException
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.