public final class TLcdDataSource extends Object implements ILcdDataSource
Creates a new data source based on a source name, typically a file name. Using this data source should behave
similarly to directly passing the source to the ILcdModelDecoder.decode(String)
method.
A typical way to create an input stream from a source is to use:
try (InputStream inputStream = fInputStreamFactory.createInputStream(aFileSource.getSource())) {
// Process input stream
} catch (RuntimeException e) {
throw new IOException(e);
}
Constructor and Description |
---|
TLcdDataSource(String aSourceName)
Creates a new data source with the given source name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aO) |
String |
getDescription()
Returns a string description of the data source.
|
String |
getSourceName()
Returns the source name.
|
int |
hashCode() |
String |
toString() |
public TLcdDataSource(String aSourceName)
aSourceName
- a source name.public String getSourceName()
public String getDescription()
ILcdDataSource
getDescription
in interface ILcdDataSource