Package com.powsybl.commons.datasource
Class ZipFileDataSource
java.lang.Object
com.powsybl.commons.datasource.ZipFileDataSource
- All Implemented Interfaces:
DataSource
,ReadOnlyDataSource
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Constructor Summary
ConstructorDescriptionZipFileDataSource
(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) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
newInputStream
(String fileName) newInputStream
(String suffix, String ext) newOutputStream
(String fileName, boolean append) newOutputStream
(String suffix, String ext, boolean append)
-
Constructor Details
-
ZipFileDataSource
public ZipFileDataSource(Path directory, String zipFileName, String baseName, DataSourceObserver observer) -
ZipFileDataSource
-
ZipFileDataSource
-
ZipFileDataSource
-
ZipFileDataSource
-
-
Method Details
-
getBaseName
- Specified by:
getBaseName
in interfaceReadOnlyDataSource
-
exists
- Specified by:
exists
in interfaceReadOnlyDataSource
- Throws:
IOException
-
exists
- Specified by:
exists
in interfaceReadOnlyDataSource
-
newInputStream
- Specified by:
newInputStream
in interfaceReadOnlyDataSource
- Throws:
IOException
-
newInputStream
- Specified by:
newInputStream
in interfaceReadOnlyDataSource
- Throws:
IOException
-
newOutputStream
- Specified by:
newOutputStream
in interfaceDataSource
- Throws:
IOException
-
newOutputStream
- Specified by:
newOutputStream
in interfaceDataSource
- Throws:
IOException
-
listNames
- Specified by:
listNames
in interfaceReadOnlyDataSource
- Throws:
IOException
-