Package com.powsybl.commons.datasource
Class MultipleReadOnlyDataSource
- java.lang.Object
-
- com.powsybl.commons.datasource.MultipleReadOnlyDataSource
-
- All Implemented Interfaces:
ReadOnlyDataSource
public class MultipleReadOnlyDataSource extends Object implements ReadOnlyDataSource
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description MultipleReadOnlyDataSource(ReadOnlyDataSource... dataSource)
MultipleReadOnlyDataSource(List<ReadOnlyDataSource> dataSources)
-
Method Summary
All Methods Instance Methods Concrete 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)
-
-
-
Constructor Detail
-
MultipleReadOnlyDataSource
public MultipleReadOnlyDataSource(ReadOnlyDataSource... dataSource)
-
MultipleReadOnlyDataSource
public MultipleReadOnlyDataSource(List<ReadOnlyDataSource> dataSources)
-
-
Method Detail
-
getBaseName
public String getBaseName()
- Specified by:
getBaseName
in interfaceReadOnlyDataSource
-
exists
public boolean exists(String suffix, String ext) throws IOException
- Specified by:
exists
in interfaceReadOnlyDataSource
- Throws:
IOException
-
exists
public boolean exists(String fileName) throws IOException
- Specified by:
exists
in interfaceReadOnlyDataSource
- Throws:
IOException
-
newInputStream
public InputStream newInputStream(String suffix, String ext) throws IOException
- Specified by:
newInputStream
in interfaceReadOnlyDataSource
- Throws:
IOException
-
newInputStream
public InputStream newInputStream(String fileName) throws IOException
- Specified by:
newInputStream
in interfaceReadOnlyDataSource
- Throws:
IOException
-
listNames
public Set<String> listNames(String regex) throws IOException
- Specified by:
listNames
in interfaceReadOnlyDataSource
- Throws:
IOException
-
-