Package com.luciad.format.s57
Class TLcdS57ObjectClassMapDecoder
java.lang.Object
com.luciad.format.s57.TLcdS57ObjectClassMapDecoder
- All Implemented Interfaces:
ILcdInputStreamFactoryCapable
This decoder decodes S-57 object class maps from map files. Object class map files contain
one line per object class, formatted as follows:
ACRONYM CODE ATTRIBUTES
-
ACRONYM
is the six-letter acronym of the object, as defined in the S-57 object catalogue. -
CODE
is the integer number code of the object, as defined in the S-57 object catalogue. -
ATTRIBUTES
is a space-separated list of acronyms of all attributes that are valid for this object class.
-
Constructor Summary
ConstructorDescriptionConstructs a newTLcdS57ObjectClassMapDecoder
.TLcdS57ObjectClassMapDecoder
(TLcdS57AttributeClassMap aAttributeClassMap) Constructs a newTLcdS57ObjectClassMapDecoder
, initialized with the given attribute class map. -
Method Summary
Modifier and TypeMethodDescriptiondecodeS57ObjectClassMap
(String aSourceName) Decodes the given map file.Returns the attribute class description map used for retrieving display names for the data model.Returns the attribute class map from which attribute class descriptors are retrieved.Returns the current input stream factory.Returns the object class description map used for retrieving display names for the data model.void
setAttributeClassDescriptionMap
(ILcdS57AttributeClassDescriptionMap aAttributeClassDescriptionMap) Sets the attribute class description map used for retrieving display names for the data model.void
setAttributeClassMap
(TLcdS57AttributeClassMap aAttributeClassMap) Sets the attribute class map from which attribute class descriptors should be retrieved.void
setInputStreamFactory
(ILcdInputStreamFactory aInputStreamFactory) Sets the factory that will create input streams from which data can be decoded.void
setObjectClassDescriptionMap
(ILcdS57ObjectClassDescriptionMap aObjectClassDescriptionMap) Sets the object class description map used for retrieving display names for the data model.
-
Constructor Details
-
TLcdS57ObjectClassMapDecoder
public TLcdS57ObjectClassMapDecoder()Constructs a newTLcdS57ObjectClassMapDecoder
. -
TLcdS57ObjectClassMapDecoder
Constructs a newTLcdS57ObjectClassMapDecoder
, initialized with the given attribute class map.- Parameters:
aAttributeClassMap
-
-
-
Method Details
-
setInputStreamFactory
Sets the factory that will create input streams from which data can be decoded.- Specified by:
setInputStreamFactory
in interfaceILcdInputStreamFactoryCapable
- Parameters:
aInputStreamFactory
- the factory that creates an input stream based on a source name.
-
getInputStreamFactory
Returns the current input stream factory.- Specified by:
getInputStreamFactory
in interfaceILcdInputStreamFactoryCapable
- Returns:
- the input stream factory that is used.
-
setAttributeClassMap
Sets the attribute class map from which attribute class descriptors should be retrieved. -
getAttributeClassMap
Returns the attribute class map from which attribute class descriptors are retrieved. -
getObjectClassDescriptionMap
Returns the object class description map used for retrieving display names for the data model.- Returns:
- the object class description map used for retrieving display names for the data model.
-
setObjectClassDescriptionMap
public void setObjectClassDescriptionMap(ILcdS57ObjectClassDescriptionMap aObjectClassDescriptionMap) Sets the object class description map used for retrieving display names for the data model.- Parameters:
aObjectClassDescriptionMap
- the object class description map used for retrieving display names for the data model.
-
getAttributeClassDescriptionMap
Returns the attribute class description map used for retrieving display names for the data model.- Returns:
- the attribute class description map used for retrieving display names for the data model.
-
setAttributeClassDescriptionMap
public void setAttributeClassDescriptionMap(ILcdS57AttributeClassDescriptionMap aAttributeClassDescriptionMap) Sets the attribute class description map used for retrieving display names for the data model.- Parameters:
aAttributeClassDescriptionMap
- the attribute class description map used for retrieving display names for the data model.
-
decodeS57ObjectClassMap
Decodes the given map file.- Throws:
IOException
-