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 TypeMethodDescriptionintappendBytes(byte[] buffer, int offset) intappendChars(char[] buffer, int offset) final inttoString()voidwriteBytes(OutputStream out) voidwriteChars(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:
serializedLengthin classWName- Returns:
- Length of full (qualified) name, in native serialization units (bytes or characters)
-
appendBytes
public int appendBytes(byte[] buffer, int offset) - Specified by:
appendBytesin classWName
-
writeBytes
- Specified by:
writeBytesin classWName- Throws:
IOException
-
appendChars
public int appendChars(char[] buffer, int offset) - Specified by:
appendCharsin classWName
-
writeChars
- Specified by:
writeCharsin classWName- Throws:
IOException
-
toString
-