TrueUpdate Core 0.5

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

java.lang.Object
  extended by net.java.trueupdate.core.zip.io.ZipEntrySource
All Implemented Interfaces:
Source

public final class ZipEntrySource
extends Object
implements Source

Reads a ZIP entry from a ZIP input.

Author:
Christian Schlichtherle
See Also:
ZipEntrySink

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

Constructor Detail

ZipEntrySource

public ZipEntrySource(ZipEntry entry,
                      ZipInput input)
Method Detail

directory

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


input

public InputStream input()
                  throws IOException
Returns an input stream for reading the ZIP entry contents.

Specified by:
input in interface Source
Throws:
IOException

name

public String name()
Returns the entry name.


TrueUpdate Core 0.5

Copyright © 2013 Schlichtherle IT Services. All rights reserved.