public abstract class WName extends Object
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.
Modifier and Type | Field and Description |
---|---|
protected String |
_localName |
protected String |
_prefix |
Modifier | Constructor and Description |
---|---|
protected |
WName(String ln) |
protected |
WName(String prefix,
String ln) |
Modifier and Type | Method and Description |
---|---|
abstract int |
appendBytes(byte[] buffer,
int offset) |
abstract int |
appendChars(char[] buffer,
int offset) |
boolean |
equals(Object o) |
String |
getLocalName() |
String |
getPrefix() |
String |
getPrefixedName() |
int |
hashCode()
Whether we should use internal hash, or the hash of prefixed
name string itself is an open question.
|
boolean |
hasName(String localName) |
boolean |
hasName(String prefix,
String localName) |
boolean |
hasPrefix() |
abstract int |
serializedLength() |
String |
toString() |
abstract void |
writeBytes(OutputStream out) |
abstract void |
writeChars(Writer w) |
public abstract int serializedLength()
public final String getPrefix()
public final String getPrefixedName()
public final String getLocalName()
public final boolean hasPrefix()
public abstract int appendBytes(byte[] buffer, int offset)
public abstract void writeBytes(OutputStream out) throws IOException
IOException
public abstract int appendChars(char[] buffer, int offset)
public abstract void writeChars(Writer w) throws IOException
IOException
public int hashCode()
public final boolean hasName(String localName)
Copyright © 2018 FasterXML. All rights reserved.