Class TLcdS57ObjectClassMapDecoder

java.lang.Object
com.luciad.format.s57.TLcdS57ObjectClassMapDecoder
All Implemented Interfaces:
ILcdInputStreamFactoryCapable

public class TLcdS57ObjectClassMapDecoder extends Object implements 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 Details

    • TLcdS57ObjectClassMapDecoder

      public TLcdS57ObjectClassMapDecoder()
      Constructs a new TLcdS57ObjectClassMapDecoder.
    • TLcdS57ObjectClassMapDecoder

      public TLcdS57ObjectClassMapDecoder(TLcdS57AttributeClassMap aAttributeClassMap)
      Constructs a new TLcdS57ObjectClassMapDecoder, initialized with the given attribute class map.
      Parameters:
      aAttributeClassMap -
  • Method Details

    • setInputStreamFactory

      public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
      Sets the factory that will create input streams from which data can be decoded.
      Specified by:
      setInputStreamFactory in interface ILcdInputStreamFactoryCapable
      Parameters:
      aInputStreamFactory - the factory that creates an input stream based on a source name.
    • getInputStreamFactory

      public ILcdInputStreamFactory getInputStreamFactory()
      Returns the current input stream factory.
      Specified by:
      getInputStreamFactory in interface ILcdInputStreamFactoryCapable
      Returns:
      the input stream factory that is used.
    • setAttributeClassMap

      public void setAttributeClassMap(TLcdS57AttributeClassMap aAttributeClassMap)
      Sets the attribute class map from which attribute class descriptors should be retrieved.
    • getAttributeClassMap

      public TLcdS57AttributeClassMap getAttributeClassMap()
      Returns the attribute class map from which attribute class descriptors are retrieved.
    • getObjectClassDescriptionMap

      public ILcdS57ObjectClassDescriptionMap 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

      public ILcdS57AttributeClassDescriptionMap 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

      public TLcdS57ObjectClassMap decodeS57ObjectClassMap(String aSourceName) throws IOException
      Decodes the given map file.
      Throws:
      IOException