Package com.powsybl.commons.datasource
Interface DataSource
-
- All Superinterfaces:
ReadOnlyDataSource
- All Known Implementing Classes:
Bzip2FileDataSource
,FileDataSource
,GzFileDataSource
,MemDataSource
,XZFileDataSource
,ZipFileDataSource
,ZstdFileDataSource
public interface DataSource extends ReadOnlyDataSource
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static DataSource
fromPath(Path file)
static DataSource
fromPath(Path directory, String fileNameOrBaseName)
OutputStream
newOutputStream(String fileName, boolean append)
OutputStream
newOutputStream(String suffix, String ext, boolean append)
-
Methods inherited from interface com.powsybl.commons.datasource.ReadOnlyDataSource
exists, exists, getBaseName, listNames, newInputStream, newInputStream
-
-
-
-
Method Detail
-
newOutputStream
OutputStream newOutputStream(String fileName, boolean append) throws IOException
- Throws:
IOException
-
newOutputStream
OutputStream newOutputStream(String suffix, String ext, boolean append) throws IOException
- Throws:
IOException
-
fromPath
static DataSource fromPath(Path file)
-
fromPath
static DataSource fromPath(Path directory, String fileNameOrBaseName)
-
-