TrueZIP 6.8.3

de.schlichtherle.io.archive.tar
Class TarOutputArchive.EntryOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by de.schlichtherle.io.archive.tar.TarOutputArchive.EntryOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
TarOutputArchive

private class TarOutputArchive.EntryOutputStream
extends FilterOutputStream

This entry output stream writes directly to our subclass. It can only be used if this output stream is not currently busy writing another entry and the entry holds enough information to write the entry header. These preconditions are checked by TarOutputArchive.getOutputStream(de.schlichtherle.io.archive.spi.ArchiveEntry, de.schlichtherle.io.archive.spi.ArchiveEntry).


Field Summary
private  boolean closed
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
private TarOutputArchive.EntryOutputStream(TarEntry entry)
           
 
Method Summary
 void close()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 
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

closed

private boolean closed
Constructor Detail

TarOutputArchive.EntryOutputStream

private TarOutputArchive.EntryOutputStream(TarEntry entry)
                                    throws IOException
Throws:
IOException
Method Detail

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

close

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

TrueZIP 6.8.3

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