Package com.fasterxml.aalto.out
Class ByteWName
- java.lang.Object
-
- com.fasterxml.aalto.out.WName
-
- com.fasterxml.aalto.out.ByteWName
-
public final class ByteWName extends WName
This class is used to represent all names that are to be serialized to byte streams, independent of specific encoding used (they will be stored on per-encoding symbol tables however).
-
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]
_bytes
-
Fields inherited from class com.fasterxml.aalto.out.WName
_localName, _prefix
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
appendBytes(byte[] buffer, int offset)
int
appendChars(char[] buffer, int offset)
int
serializedLength()
void
writeBytes(java.io.OutputStream out)
void
writeChars(java.io.Writer w)
-
Methods inherited from class com.fasterxml.aalto.out.WName
equals, getLocalName, getPrefix, getPrefixedName, hashCode, hasName, hasName, hasPrefix, toString
-
-
-
-
Method Detail
-
serializedLength
public final int serializedLength()
- Specified by:
serializedLength
in classWName
- Returns:
- Length of full (qualified) name, in native serialization units (bytes or characters)
-
appendBytes
public int appendBytes(byte[] buffer, int offset)
- Specified by:
appendBytes
in classWName
-
writeBytes
public void writeBytes(java.io.OutputStream out) throws java.io.IOException
- Specified by:
writeBytes
in classWName
- Throws:
java.io.IOException
-
appendChars
public int appendChars(char[] buffer, int offset)
- Specified by:
appendChars
in classWName
-
writeChars
public void writeChars(java.io.Writer w) throws java.io.IOException
- Specified by:
writeChars
in classWName
- Throws:
java.io.IOException
-
-