Package com.fasterxml.aalto.out
Class ByteWName
java.lang.Object
com.fasterxml.aalto.out.WName
com.fasterxml.aalto.out.ByteWName
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
FieldsFields inherited from class com.fasterxml.aalto.out.WName
_localName, _prefix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
appendBytes
(byte[] buffer, int offset) int
appendChars
(char[] buffer, int offset) final int
void
writeBytes
(OutputStream out) void
writeChars
(Writer w) Methods inherited from class com.fasterxml.aalto.out.WName
equals, getLocalName, getPrefix, getPrefixedName, hashCode, hasName, hasName, hasPrefix, toString
-
Field Details
-
_bytes
final byte[] _bytes
-
-
Constructor Details
-
ByteWName
-
ByteWName
-
-
Method Details
-
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
- Specified by:
writeBytes
in classWName
- Throws:
IOException
-
appendChars
public int appendChars(char[] buffer, int offset) - Specified by:
appendChars
in classWName
-
writeChars
- Specified by:
writeChars
in classWName
- Throws:
IOException
-