com.sun.xml.bind.v2.runtime.output
public abstract class Pcdata extends Object implements CharSequence
This class is used inside the marshaller/unmarshaller to send/receive text data.
On top of CharSequence, this class has an ability to write itself to the XmlOutput. This allows the implementation to choose the most efficient way possible when writing to XML (for example, it can skip the escaping of buffer copying.) TODO: visitor pattern support?
Method Summary | |
---|---|
abstract String | toString() |
abstract void | writeTo(UTF8XmlOutput output)
Writes itself to UTF8XmlOutput.
|
void | writeTo(char[] buf, int start)
Writes itself to the character array.
|
This is the most performance critical path for the marshaller, so it warrants its own method.