public abstract class XmlNamespaceChunk extends XmlNodeChunk
Chunk.TypechunkSize, headerSize, METADATA_SIZE, offset, PAD_BOUNDARY| Modifier | Constructor and Description |
|---|---|
protected |
XmlNamespaceChunk(java.nio.ByteBuffer buffer,
Chunk parent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPrefix()
Returns the namespace prefix.
|
java.lang.String |
getUri()
Returns the namespace URI.
|
java.lang.String |
toString()
Returns a brief description of this namespace chunk.
|
protected void |
writePayload(java.io.DataOutput output,
java.nio.ByteBuffer header,
boolean shrink)
Writes the chunk payload.
|
getComment, getLineNumber, getString, hasComment, writeHeadergetHeaderSize, getOriginalChunkSize, getParent, getType, init, newInstance, newInstance, toByteArray, toByteArray, writeHeader, writePadprotected XmlNamespaceChunk(java.nio.ByteBuffer buffer,
@Nullable
Chunk parent)
public java.lang.String getPrefix()
public java.lang.String getUri()
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()
"XmlNamespaceChunk{line=1234, comment=My awesome comment., prefix=foo, uri=com.google.foo}"
toString in class XmlNodeChunk