Class IncludedResourceObject

  • All Implemented Interfaces:
    Streamable

    public class IncludedResourceObject
    extends AbstractNamedAFPObject
    Encapsulates an included resource object that is loaded from an external file.
    • Field Detail

      • uri

        private java.net.URI uri
    • Constructor Detail

      • IncludedResourceObject

        public IncludedResourceObject​(java.lang.String name,
                                      AFPResourceAccessor resourceAccessor,
                                      java.net.URI uri)
        Main constructor.
        Parameters:
        name - the name of the included resource
        resourceAccessor - the resource accessor to load the external file with
        uri - the URI of the external file
    • 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
        Specified by:
        writeToStream in interface Streamable
        Overrides:
        writeToStream in class AbstractStructuredObject
        Parameters:
        os - the outputsteam stream
        Throws:
        java.io.IOException - an I/O exception of some sort has occurred.