Top Description Fields Constructors Methods
com.fasterxml.aalto.out

pack-priv final Class CharWName

extends WName
Class Inheritance
Imports
java.io.IOException, .OutputStream, .Writer

This class is similar to com.fasterxml.aalto.in.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

Modifier and TypeField and Description
pack-priv final char[]
Inherited from com.fasterxml.aalto.out.WName:
_localName_prefix

Constructor Summary

AccessConstructor and Description
public
CharWName(String localName)

public
CharWName(String prefix, String localName)

Method Summary

Modifier and TypeMethod and Description
public int
appendBytes(byte[] buffer, int offset)

Implements abstract com.fasterxml.aalto.out.WName.appendBytes.

public int
appendChars(char[] buffer, int offset)

Implements abstract com.fasterxml.aalto.out.WName.appendChars.

public final int
public String
toString()

Overrides com.fasterxml.aalto.out.WName.toString.

Returns a string representation of the object.
public void
public void
Inherited from com.fasterxml.aalto.out.WName:
equalsgetLocalNamegetPrefixgetPrefixedNamehashCodehasNamehasNamehasPrefix

Field Detail

_charsback to summary
pack-priv final char[] _chars

Constructor Detail

CharWNameback to summary
public CharWName(String localName)
CharWNameback to summary
public CharWName(String prefix, String localName)

Method Detail

appendBytesback to summary
public int appendBytes(byte[] buffer, int offset)

Implements abstract com.fasterxml.aalto.out.WName.appendBytes.

Annotations
@Override
appendCharsback to summary
public int appendChars(char[] buffer, int offset)

Implements abstract com.fasterxml.aalto.out.WName.appendChars.

Annotations
@Override
serializedLengthback to summary
public final int serializedLength()

Implements abstract com.fasterxml.aalto.out.WName.serializedLength.

Returns:int

Doc from com.fasterxml.aalto.out.WName.serializedLength.

Length of full (qualified) name, in native serialization units (bytes or characters)

Annotations
@Override
toStringback to summary
public String toString()

Overrides com.fasterxml.aalto.out.WName.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
writeBytesback to summary
public void writeBytes(OutputStream out) throws IOException

Implements abstract com.fasterxml.aalto.out.WName.writeBytes.

Annotations
@Override
writeCharsback to summary
public void writeChars(Writer w) throws IOException

Implements abstract com.fasterxml.aalto.out.WName.writeChars.

Annotations
@Override