public class ZipFileDataSource extends Object implements DataSource
Constructor and Description |
---|
ZipFileDataSource(Path zipFile) |
ZipFileDataSource(Path directory,
String baseName) |
ZipFileDataSource(Path directory,
String baseName,
DataSourceObserver observer) |
ZipFileDataSource(Path directory,
String zipFileName,
String baseName) |
ZipFileDataSource(Path directory,
String zipFileName,
String baseName,
DataSourceObserver observer) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(String fileName) |
boolean |
exists(String suffix,
String ext) |
String |
getBaseName() |
Set<String> |
listNames(String regex) |
InputStream |
newInputStream(String fileName) |
InputStream |
newInputStream(String suffix,
String ext) |
OutputStream |
newOutputStream(String fileName,
boolean append) |
OutputStream |
newOutputStream(String suffix,
String ext,
boolean append) |
public ZipFileDataSource(Path directory, String zipFileName, String baseName, DataSourceObserver observer)
public ZipFileDataSource(Path directory, String baseName, DataSourceObserver observer)
public ZipFileDataSource(Path zipFile)
public String getBaseName()
getBaseName
in interface ReadOnlyDataSource
public boolean exists(String suffix, String ext) throws IOException
exists
in interface ReadOnlyDataSource
IOException
public boolean exists(String fileName)
exists
in interface ReadOnlyDataSource
public InputStream newInputStream(String suffix, String ext) throws IOException
newInputStream
in interface ReadOnlyDataSource
IOException
public InputStream newInputStream(String fileName) throws IOException
newInputStream
in interface ReadOnlyDataSource
IOException
public OutputStream newOutputStream(String fileName, boolean append) throws IOException
newOutputStream
in interface DataSource
IOException
public OutputStream newOutputStream(String suffix, String ext, boolean append) throws IOException
newOutputStream
in interface DataSource
IOException
public Set<String> listNames(String regex) throws IOException
listNames
in interface ReadOnlyDataSource
IOException
Copyright © 2020. All rights reserved.