public final class XmlCdataChunk extends XmlNodeChunk
Chunk.TypechunkSize, headerSize, METADATA_SIZE, offset, PAD_BOUNDARY| Modifier | Constructor and Description |
|---|---|
protected |
XmlCdataChunk(java.nio.ByteBuffer buffer,
Chunk parent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRawValue()
Returns a string containing the raw character data of this chunk.
|
BinaryResourceValue |
getResourceValue()
Returns a
BinaryResourceValue instance containing the parsed cdata value. |
protected Chunk.Type |
getType() |
java.lang.String |
toString()
Returns a brief description of this XML node.
|
protected void |
writePayload(java.io.DataOutput output,
java.nio.ByteBuffer header,
boolean shrink)
Writes the chunk payload.
|
getComment, getLineNumber, getString, hasComment, writeHeadergetHeaderSize, getOriginalChunkSize, getParent, init, newInstance, newInstance, toByteArray, toByteArray, writeHeader, writePadprotected XmlCdataChunk(java.nio.ByteBuffer buffer,
@Nullable
Chunk parent)
public java.lang.String getRawValue()
public BinaryResourceValue getResourceValue()
BinaryResourceValue instance containing the parsed cdata value.protected Chunk.Type getType()
protected void writePayload(java.io.DataOutput output,
java.nio.ByteBuffer header,
boolean shrink)
throws java.io.IOException
ChunkheaderSize bytes of the chunk.writePayload in class Chunkoutput - 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.java.io.IOException - Thrown if output could not be written to (out of memory).public java.lang.String toString()
"XmlCdataChunk{line=1234, comment=My awesome comment., value=1234}"toString in class XmlNodeChunk