de.schlichtherle.io.archive.tar
Class TarOutputArchive.TempEntryOutputStream
java.lang.Object
java.io.OutputStream
java.io.FileOutputStream
de.schlichtherle.io.archive.tar.TarOutputArchive.TempEntryOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Enclosing class:
- TarOutputArchive
private class TarOutputArchive.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 this
output stream and finally deleted.
|
Method Summary |
void |
close()
|
entry
private final TarEntry entry
temp
private final File temp
closed
private boolean closed
TarOutputArchive.TempEntryOutputStream
public TarOutputArchive.TempEntryOutputStream(TarEntry entry,
File temp)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class FileOutputStream
- Throws:
IOException
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.