Class PageDescriptor

  • All Implemented Interfaces:
    Streamable

    public class PageDescriptor
    extends AbstractDescriptor
    The Page Descriptor structured field specifies the size and attributes of a page or overlay presentation space.
    • Constructor Detail

      • PageDescriptor

        public PageDescriptor​(int width,
                              int height,
                              int widthRes,
                              int heightRes)
        Construct a page descriptor for the specified page width and page height.
        Parameters:
        width - The page width.
        height - The page height.
        widthRes - The page width resolution
        heightRes - The page height resolution
    • 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.