|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.v2.runtime.output.Pcdata
public abstract class Pcdata
Text data in XML.
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?
| Constructor Summary | |
|---|---|
Pcdata()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
toString()
|
void |
writeTo(char[] buf,
int start)
Writes itself to the character array. |
abstract void |
writeTo(UTF8XmlOutput output)
Writes itself to UTF8XmlOutput. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.CharSequence |
|---|
charAt, length, subSequence |
| Constructor Detail |
|---|
public Pcdata()
| Method Detail |
|---|
public abstract void writeTo(UTF8XmlOutput output)
throws java.io.IOException
UTF8XmlOutput.
This is the most performance critical path for the marshaller, so it warrants its own method.
java.io.IOException
public void writeTo(char[] buf,
int start)
This method is used by most other XmlOutput.
The default implementation involves in one extra char[] copying.
The caller must provide a big enough buffer that can hold
enough characters returned by the CharSequence.length() method.
public abstract java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||