Package com.fasterxml.aalto.out
Class CharWName
java.lang.Object
com.fasterxml.aalto.out.WName
com.fasterxml.aalto.out.CharWName
This class is similar to
PName
, in
that it implements an efficient representation of prefixed names,
but one used on output (Writer) side.
Note: unlike with Reader-side prefixed names, here we can not
assume that components are intern()
ed.
-
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
toString()
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
-
Field Details
-
_chars
final char[] _chars
-
-
Constructor Details
-
CharWName
-
CharWName
-
-
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
-
toString
-