|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.runtime.impl.UTF8Escaper
Handler for writing UTF output stream (for any form of UTF, despite the name). This code is specifically for XML 1.0 and would require changes for XML 1.1 (to handle the added legal characters, rather than throwing an exception).
Field Summary | |
private static UTF8Escaper |
s_instance
Singleton instance of class. |
Constructor Summary | |
private |
UTF8Escaper()
Private constructor to prevent external creation. |
Method Summary | |
static ICharacterEscaper |
getInstance()
Get instance of escaper. |
void |
writeAttribute(java.lang.String text,
java.io.Writer writer)
Write attribute value with character entity substitutions. |
void |
writeCData(java.lang.String text,
java.io.Writer writer)
Write CDATA to document. |
void |
writeContent(java.lang.String text,
java.io.Writer writer)
Write content value with character entity substitutions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final UTF8Escaper s_instance
Constructor Detail |
private UTF8Escaper()
Method Detail |
public void writeAttribute(java.lang.String text, java.io.Writer writer) throws java.io.IOException
writeAttribute
in interface ICharacterEscaper
text
- attribute value textwriter
- sink for output text
java.io.IOException
- on error writing to documentpublic void writeContent(java.lang.String text, java.io.Writer writer) throws java.io.IOException
writeContent
in interface ICharacterEscaper
text
- content value textwriter
- sink for output text
java.io.IOException
- on error writing to documentpublic void writeCData(java.lang.String text, java.io.Writer writer) throws java.io.IOException
writeCData
in interface ICharacterEscaper
text
- content value textwriter
- sink for output text
java.io.IOException
- on error writing to documentpublic static ICharacterEscaper getInstance()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |