Class GraphicsChainedSegment

    • Field Detail

      • MAX_DATA_LEN

        public static final int MAX_DATA_LEN
        The maximum segment data length
        See Also:
        Constant Field Values
      • predecessorNameBytes

        private byte[] predecessorNameBytes
      • appended

        private boolean appended
      • prologPresent

        private boolean prologPresent
    • Constructor Detail

      • GraphicsChainedSegment

        public GraphicsChainedSegment​(java.lang.String name)
        Main constructor
        Parameters:
        name - the name of this graphics segment
      • GraphicsChainedSegment

        public GraphicsChainedSegment​(java.lang.String name,
                                      byte[] predecessorNameBytes,
                                      boolean appended,
                                      boolean prologPresent)
        Constructor
        Parameters:
        name - the name of this graphics segment
        predecessorNameBytes - the name of the predecessor in this chain
        appended - true if this segment is appended to the previous one
        prologPresent - true if this segment starts with a prolog
    • Method Detail

      • getOrderCode

        byte getOrderCode()
      • 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.