public class GenericReadOnlyDataSource extends Object implements ReadOnlyDataSource
Constructor and Description |
---|
GenericReadOnlyDataSource(Path directory,
String baseName) |
GenericReadOnlyDataSource(Path directory,
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) |
public GenericReadOnlyDataSource(Path directory, String baseName, DataSourceObserver observer)
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) throws IOException
exists
in interface ReadOnlyDataSource
IOException
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 Set<String> listNames(String regex) throws IOException
listNames
in interface ReadOnlyDataSource
IOException
Copyright © 2020. All rights reserved.