Package com.powsybl.commons.datasource
Interface ReadOnlyDataSource
-
- All Known Subinterfaces:
DataSource
- All Known Implementing Classes:
Bzip2FileDataSource
,FileDataSource
,GenericReadOnlyDataSource
,GzFileDataSource
,MemDataSource
,ReadOnlyMemDataSource
,ResourceDataSource
,XZFileDataSource
,ZipFileDataSource
,ZstdFileDataSource
public interface ReadOnlyDataSource
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getBaseName
String getBaseName()
-
exists
boolean exists(String suffix, String ext) throws IOException
- Throws:
IOException
-
exists
boolean exists(String fileName) throws IOException
- Throws:
IOException
-
newInputStream
InputStream newInputStream(String suffix, String ext) throws IOException
- Throws:
IOException
-
newInputStream
InputStream newInputStream(String fileName) throws IOException
- Throws:
IOException
-
listNames
Set<String> listNames(String regex) throws IOException
- Throws:
IOException
-
-