public class ZipDataSource extends java.lang.Object implements DataSource
| Constructor and Description |
|---|
ZipDataSource(java.util.zip.ZipFile zipFile,
java.util.zip.ZipEntry zipEntry) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
Get an InputStream on the source file.
|
java.lang.String |
getNiceFileName(boolean shortNames,
java.lang.String inputFileName)
Return a nice version of the filename.
|
public ZipDataSource(java.util.zip.ZipFile zipFile,
java.util.zip.ZipEntry zipEntry)
zipFile - the ZipFilezipEntry - the ZipEntry containing the file to readpublic java.io.InputStream getInputStream()
throws java.io.IOException
DataSourcegetInputStream in interface DataSourcejava.io.IOException - if the file can't be openedpublic java.lang.String getNiceFileName(boolean shortNames,
java.lang.String inputFileName)
DataSourcegetNiceFileName in interface DataSourceshortNames - true if short names are being usedinputFileName - name of a "master" file this file is relative to