|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jibx.runtime.impl.USASCIIEscaper
public class USASCIIEscaper
Handler for writing ASCII output stream. 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).
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |