org.zeroturnaround.zip
Class FileSource
java.lang.Object
org.zeroturnaround.zip.FileSource
- All Implemented Interfaces:
- ZipEntrySource
public class FileSource
- extends Object
- implements ZipEntrySource
FileSource
public FileSource(String path,
File file)
getPath
public String getPath()
- Specified by:
getPath in interface ZipEntrySource
- Returns:
- path of the given entry (not
null).
getEntry
public ZipEntry getEntry()
- Specified by:
getEntry in interface ZipEntrySource
- Returns:
- meta-data of the given entry (not
null).
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in interface ZipEntrySource
- Returns:
- an input stream of the given entry
or
null if this entry is a directory.
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 ZeroTurnaround. All Rights Reserved.