Class ExtendedResourceLocalIdentifierTriplet

  • All Implemented Interfaces:
    Triplet, Streamable, StructuredData

    public class ExtendedResourceLocalIdentifierTriplet
    extends AbstractTriplet
    The Extended Resource Local Identifier triplet specifies a resource type and a four byte local identifier or LID. The LID usually is associated with a specific resource name by a map structured field, such as a Map Data Resource structured field, or a Map Media Type structured field.
    • Field Detail

      • TYPE_IMAGE_RESOURCE

        public static final byte TYPE_IMAGE_RESOURCE
        the image resource type
        See Also:
        Constant Field Values
      • TYPE_RETIRED_VALUE

        public static final byte TYPE_RETIRED_VALUE
        the retired value type
        See Also:
        Constant Field Values
      • TYPE_MEDIA_RESOURCE

        public static final byte TYPE_MEDIA_RESOURCE
        the retired value type
        See Also:
        Constant Field Values
      • type

        private final byte type
        the resource type
      • localId

        private final int localId
        the resource local id
    • Constructor Detail

      • ExtendedResourceLocalIdentifierTriplet

        public ExtendedResourceLocalIdentifierTriplet​(byte type,
                                                      int localId)
        Main constructor
        Parameters:
        type - the resource type
        localId - the resource local id
    • Method Detail

      • writeToStream

        public void writeToStream​(java.io.OutputStream os)
                           throws java.io.IOException
        DataStream objects must implement the writeToStream() method to write its data to the given OutputStream
        Parameters:
        os - the outputsteam stream
        Throws:
        java.io.IOException - an I/O exception of some sort has occurred.
      • getDataLength

        public int getDataLength()
        Returns the data length of this structured field
        Returns:
        the data length of this structured field