public final class XmlStartElementChunk extends XmlNodeChunk
Chunk.TypechunkSize, headerSize, METADATA_SIZE, offset, PAD_BOUNDARY| Modifier | Constructor and Description |
|---|---|
protected |
XmlStartElementChunk(java.nio.ByteBuffer buffer,
Chunk parent) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<XmlAttribute> |
getAttributes()
Returns an unmodifiable list of this XML element's attributes.
|
java.lang.String |
getName()
Returns the element name that this chunk represents.
|
java.lang.String |
getNamespace()
Returns the namespace URI, or the empty string if not present.
|
protected Chunk.Type |
getType() |
protected void |
init(java.nio.ByteBuffer buffer)
Finishes initialization of a chunk.
|
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, newInstance, newInstance, toByteArray, toByteArray, writeHeader, writePadprotected XmlStartElementChunk(java.nio.ByteBuffer buffer,
@Nullable
Chunk parent)
protected void init(java.nio.ByteBuffer buffer)
Chunkpublic java.lang.String getNamespace()
public java.lang.String getName()
public java.util.List<XmlAttribute> getAttributes()
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()
"XmlStartElementChunk{line=1234, comment=My awesome comment., namespace=foo, name=bar, ...}"
toString in class XmlNodeChunk