public final class TLcdDataSource extends java.lang.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(java.lang.String aSourceName)
Creates a new data source with the given source name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object aO) |
java.lang.String |
getDescription()
Returns a string description of the data source.
|
java.lang.String |
getSourceName()
Returns the source name.
|
int |
hashCode() |
java.lang.String |
toString() |
public TLcdDataSource(java.lang.String aSourceName)
aSourceName
- a source name.public java.lang.String getSourceName()
public java.lang.String getDescription()
ILcdDataSource
getDescription
in interface ILcdDataSource
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object aO)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object