public final class XmlEndElementChunk extends XmlNodeChunk
Chunk.TypechunkSize, headerSize, METADATA_SIZE, offset, PAD_BOUNDARY| Modifier | Constructor and Description |
|---|---|
protected |
XmlEndElementChunk(java.nio.ByteBuffer buffer,
Chunk parent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the attribute name.
|
java.lang.String |
getNamespace()
Returns the namespace URI, or the empty string if no namespace is present.
|
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 XmlEndElementChunk(java.nio.ByteBuffer buffer,
@Nullable
Chunk parent)
public java.lang.String getNamespace()
public java.lang.String getName()
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()
"XmlEndElementChunk{line=1234, comment=My awesome comment., namespace=foo, name=bar}"
toString in class XmlNodeChunk