Class XmlCdataChunk

    • Constructor Detail

      • XmlCdataChunk

        protected XmlCdataChunk​(java.nio.ByteBuffer buffer,
                                @Nullable
                                Chunk parent)
    • Method Detail

      • getRawValue

        public java.lang.String getRawValue()
        Returns a string containing the raw character data of this chunk.
      • writePayload

        protected void writePayload​(java.io.DataOutput output,
                                    java.nio.ByteBuffer header,
                                    boolean shrink)
                             throws java.io.IOException
        Description copied from class: Chunk
        Writes the chunk payload. The payload is data in a chunk which is not in the first headerSize bytes of the chunk.
        Overrides:
        writePayload in class Chunk
        Parameters:
        output - The stream that the payload will be written to.
        header - The already-written header. This can be modified to fix payload offsets.
        shrink - True if this payload should be optimized for size.
        Throws:
        java.io.IOException - Thrown if output could not be written to (out of memory).
      • toString

        public java.lang.String toString()
        Returns a brief description of this XML node. The representation of this information is subject to change, but below is a typical example:
        "XmlCdataChunk{line=1234, comment=My awesome comment., value=1234}"
        Overrides:
        toString in class XmlNodeChunk