TrueUpdate Core 0.4

net.java.trueupdate.core.zip.io
Class ZipEntrySink

java.lang.Object
  extended by net.java.trueupdate.core.zip.io.ZipEntrySink
All Implemented Interfaces:
Sink

public final class ZipEntrySink
extends Object
implements Sink

Writes a ZIP entry to a ZIP output.

Author:
Christian Schlichtherle
See Also:
ZipEntrySource

Constructor Summary
ZipEntrySink(ZipEntry entry, ZipOutput output)
           
 
Method Summary
 boolean directory()
          Returns true if the entry is a directory entry.
 String name()
          Returns the entry name.
 OutputStream output()
          Returns an output stream for writing the ZIP entry contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipEntrySink

public ZipEntrySink(ZipEntry entry,
                    ZipOutput output)
Method Detail

directory

public boolean directory()
Returns true if the entry is a directory entry.


name

public String name()
Returns the entry name.


output

public OutputStream output()
                    throws IOException
Returns an output stream for writing the ZIP entry contents.

Specified by:
output in interface Sink
Throws:
IOException

TrueUpdate Core 0.4

Copyright © 2013 Schlichtherle IT Services. All rights reserved.