Package com.luciad.model
Class TLcdDataSource
java.lang.Object
com.luciad.model.TLcdDataSource
- All Implemented Interfaces:
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);
}
- Since:
- 2017.0
-
Constructor Summary
ConstructorDescriptionTLcdDataSource
(String aSourceName) Creates a new data source with the given source name. -
Method Summary
-
Constructor Details
-
TLcdDataSource
Creates a new data source with the given source name. This is typically a file name.- Parameters:
aSourceName
- a source name.
-
-
Method Details
-
getSourceName
Returns the source name.- Returns:
- the source name.
-
getDescription
Description copied from interface:ILcdDataSource
Returns a string description of the data source. This will typically be used in a GUI, or in error and warning messages.- Specified by:
getDescription
in interfaceILcdDataSource
- Returns:
- a String describing the data source.
-
toString
-
equals
-
hashCode
public int hashCode()
-