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
-
ACRONYMis the six-letter acronym of the attribute, as defined in the S-57 attribute catalogue. -
CODEis the integer number code of the attribute, as defined in the S-57 attribute catalogue. -
TYPEcan be any of:- E: enumerated
- L: list
- F: float
- I: integer
- A: coded string
- S: free text
-
MIN_VALUEshould 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_VALUEshould 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeS57AttributeClassMap(String aSourceName) Decodes the given map file.Returns the current input stream factory.voidsetInputStreamFactory(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:
setInputStreamFactoryin interfaceILcdInputStreamFactoryCapable- Parameters:
aInputStreamFactory- the factory that creates an input stream based on a source name.
-
getInputStreamFactory
Returns the current input stream factory.- Specified by:
getInputStreamFactoryin interfaceILcdInputStreamFactoryCapable- Returns:
- the input stream factory that is used.
-
decodeS57AttributeClassMap
Decodes the given map file.- Throws:
IOException
-