Package com.luciad.format.s57
Class TLcdS57AttributeClassMapDecoder
java.lang.Object
com.luciad.format.s57.TLcdS57AttributeClassMapDecoder
- All Implemented Interfaces:
ILcdInputStreamFactoryCapable
public class TLcdS57AttributeClassMapDecoder
extends Object
implements ILcdInputStreamFactoryCapable
This decoder decodes S-57 attribute class map objects.
Attribute class map files contain one line per attribute, formatted as follows:
ACRONYM CODE TYPE MIN_VALUE MAX_VALUE
-
ACRONYM
is the six-letter acronym of the attribute, as defined in the S-57 attribute catalogue. -
CODE
is the integer number code of the attribute, as defined in the S-57 attribute catalogue. -
TYPE
can be any of:- E: enumerated
- L: list
- F: float
- I: integer
- A: coded string
- S: free text
-
MIN_VALUE
should only be specified for integer and float types. For integers, this should be a well-formatted integer value or '-' if no minimum value exists. For floats, this should be a well-formatted float value or '-' if no minimum value exists. -
MAX_VALUE
should only be specified for integer and float types. For integers, this should be a well-formatted integer value or '-' if no maximum value exists. For floats, this should be a well-formatted float value or '-' if no maximum value exists.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecodeS57AttributeClassMap
(String aSourceName) Decodes the given map file.Returns the current input stream factory.void
setInputStreamFactory
(ILcdInputStreamFactory aInputStreamFactory) Sets the factory that will create input streams from which data can be decoded.
-
Constructor Details
-
TLcdS57AttributeClassMapDecoder
public TLcdS57AttributeClassMapDecoder()
-
-
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.
-
decodeS57AttributeClassMap
Decodes the given map file.- Throws:
IOException
-