TrueZIP 6.8.2

de.schlichtherle.io.archive.zip
Class ZipOutputArchive.EntryOutputStream

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

private class ZipOutputArchive.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 ZipOutputArchive.getOutputStream(de.schlichtherle.io.archive.spi.ArchiveEntry, de.schlichtherle.io.archive.spi.ArchiveEntry).


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
private ZipOutputArchive.EntryOutputStream(ZipEntry entry)
           
private ZipOutputArchive.EntryOutputStream(ZipEntry entry, boolean deflate)
           
 
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
 

Constructor Detail

ZipOutputArchive.EntryOutputStream

private ZipOutputArchive.EntryOutputStream(ZipEntry entry)
                                    throws IOException
Throws:
IOException

ZipOutputArchive.EntryOutputStream

private ZipOutputArchive.EntryOutputStream(ZipEntry entry,
                                           boolean deflate)
                                    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.2

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