Class ExtendedResourceLocalIdentifierTriplet

java.lang.Object
org.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.modca.triplets.AbstractTriplet
org.apache.fop.afp.modca.triplets.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 Details

    • TYPE_IMAGE_RESOURCE

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

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

      public static final byte TYPE_MEDIA_RESOURCE
      the retired value type
      See Also:
  • Constructor Details

    • ExtendedResourceLocalIdentifierTriplet

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

    • writeToStream

      public void writeToStream(OutputStream os) throws IOException
      DataStream objects must implement the writeToStream() method to write its data to the given OutputStream
      Parameters:
      os - the outputsteam stream
      Throws:
      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