public final class AsciiXmlWriter extends EncodingXmlWriter
EncodingXmlWriter
used when output
is to be encoded using 7-bit ascii (US-ASCII) encoding.BYTE_A, BYTE_AMP, BYTE_APOS, BYTE_COLON, BYTE_EQ, BYTE_G, BYTE_GT, BYTE_HASH, BYTE_HYPHEN, BYTE_L, BYTE_LBRACKET, BYTE_LT, BYTE_M, BYTE_O, BYTE_P, BYTE_Q, BYTE_QMARK, BYTE_QUOT, BYTE_RBRACKET, BYTE_S, BYTE_SEMICOLON, BYTE_SLASH, BYTE_SPACE, BYTE_T, BYTE_U, BYTE_X, DEFAULT_BUFFER_SIZE, mOutputBuffer, mOutputPtr, mSurrogate
DEFAULT_QUOTE_CHAR, mAddSpaceAfterEmptyElem, mAttrValueWriter, mAutoCloseOutput, mCheckContent, mCheckNames, mCheckStructure, mConfig, mEncoding, mEscapeCR, mFixContent, mLocPastChars, mLocRowNr, mLocRowStartOffset, mNsAware, mRawWrapper, mTextWrapper, mTextWriter, mUseDoubleQuotesInXmlDecl, mXml11, SURR1_FIRST, SURR1_LAST, SURR2_FIRST, SURR2_LAST
Constructor and Description |
---|
AsciiXmlWriter(java.io.OutputStream out,
WriterConfig cfg,
boolean autoclose) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleInvalidAsciiChar(int c) |
protected void |
writeAttrValue(char[] data,
int offset,
int len) |
protected void |
writeAttrValue(java.lang.String data) |
protected int |
writeCDataContent(char[] cbuf,
int start,
int len) |
protected int |
writeCDataContent(java.lang.String data) |
protected int |
writeCommentContent(java.lang.String data) |
protected int |
writePIData(java.lang.String data) |
void |
writeRaw(char[] cbuf,
int offset,
int len) |
void |
writeRaw(java.lang.String str,
int offset,
int len) |
protected void |
writeTextContent(char[] cbuf,
int offset,
int len) |
protected void |
writeTextContent(java.lang.String data) |
calcSurrogate, close, flush, flushBuffer, getOutputPtr, getOutputStream, getWriter, throwUnpairedSurrogate, throwUnpairedSurrogate, writeAscii, writeAscii, writeAscii, writeAsEntity, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCData, writeCDataEnd, writeCDataStart, writeCharacters, writeCharacters, writeComment, writeCommentEnd, writeCommentStart, writeDTD, writeDTD, writeEndTag, writeEndTag, writeEntityReference, writeName, writeNameUnchecked, writePI, writePIEnd, writePIStart, writeRawAscii, writeStartTagEmptyEnd, writeStartTagEnd, writeStartTagStart, writeStartTagStart, writeTypedAttribute, writeTypedAttribute, writeTypedAttribute, writeTypedElement, writeTypedElement, writeXmlDeclaration
enableXml11, getAbsOffset, getColumn, getRow, handleInvalidChar, reportNwfContent, reportNwfName, reportNwfName, throwOutputError, throwOutputError, verifyNameValidity, wrapAsRawWriter, wrapAsTextWriter, writeRaw
public AsciiXmlWriter(java.io.OutputStream out, WriterConfig cfg, boolean autoclose) throws java.io.IOException
java.io.IOException
public void writeRaw(char[] cbuf, int offset, int len) throws java.io.IOException
writeRaw
in class EncodingXmlWriter
java.io.IOException
public void writeRaw(java.lang.String str, int offset, int len) throws java.io.IOException
writeRaw
in class EncodingXmlWriter
java.io.IOException
protected void writeAttrValue(java.lang.String data) throws java.io.IOException
writeAttrValue
in class EncodingXmlWriter
java.io.IOException
protected void writeAttrValue(char[] data, int offset, int len) throws java.io.IOException
writeAttrValue
in class EncodingXmlWriter
java.io.IOException
protected int writeCDataContent(java.lang.String data) throws java.io.IOException
writeCDataContent
in class EncodingXmlWriter
java.io.IOException
protected int writeCDataContent(char[] cbuf, int start, int len) throws java.io.IOException
writeCDataContent
in class EncodingXmlWriter
java.io.IOException
protected int writeCommentContent(java.lang.String data) throws java.io.IOException
writeCommentContent
in class EncodingXmlWriter
java.io.IOException
protected int writePIData(java.lang.String data) throws java.io.IOException, javax.xml.stream.XMLStreamException
writePIData
in class EncodingXmlWriter
java.io.IOException
javax.xml.stream.XMLStreamException
protected void writeTextContent(java.lang.String data) throws java.io.IOException
writeTextContent
in class EncodingXmlWriter
java.io.IOException
protected void writeTextContent(char[] cbuf, int offset, int len) throws java.io.IOException
writeTextContent
in class EncodingXmlWriter
java.io.IOException
protected void handleInvalidAsciiChar(int c) throws java.io.IOException
java.io.IOException