Package com.ctc.wstx.sw
Class ISOLatin1XmlWriter
java.lang.Object
com.ctc.wstx.sw.XmlWriter
com.ctc.wstx.sw.EncodingXmlWriter
com.ctc.wstx.sw.ISOLatin1XmlWriter
Concrete implementation of
EncodingXmlWriter used when output
is to be encoded using ISO-8859-1, aka ISO-Latin1 encoding.
Regarding surrogate pair handling: most of the checks are in the base
class, and here we only need to worry about writeRaw
methods.
-
Field Summary
Fields inherited from class com.ctc.wstx.sw.EncodingXmlWriter
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, mSurrogateFields inherited from class com.ctc.wstx.sw.XmlWriter
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleInvalidLatinChar(int c) protected voidwriteAttrValue(char[] data, int offset, int len) protected voidwriteAttrValue(String data) protected intwriteCDataContent(char[] cbuf, int start, int len) protected intwriteCDataContent(String data) protected intwriteCommentContent(String data) protected intwritePIData(String data) voidwriteRaw(char[] cbuf, int offset, int len) voidprotected voidwriteTextContent(char[] cbuf, int offset, int len) protected voidwriteTextContent(String data) Methods inherited from class com.ctc.wstx.sw.EncodingXmlWriter
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, writeXmlDeclarationMethods inherited from class com.ctc.wstx.sw.XmlWriter
enableXml11, getAbsOffset, getColumn, getRow, handleInvalidChar, reportNwfContent, reportNwfName, throwOutputError, throwOutputError, verifyNameValidity, wrapAsRawWriter, wrapAsTextWriter, writeRaw
-
Constructor Details
-
ISOLatin1XmlWriter
- Throws:
IOException
-
-
Method Details
-
writeRaw
- Specified by:
writeRawin classEncodingXmlWriter- Throws:
IOException
-
writeRaw
- Specified by:
writeRawin classEncodingXmlWriter- Throws:
IOException
-
writeAttrValue
- Specified by:
writeAttrValuein classEncodingXmlWriter- Throws:
IOException
-
writeAttrValue
- Specified by:
writeAttrValuein classEncodingXmlWriter- Throws:
IOException
-
writeCDataContent
- Specified by:
writeCDataContentin classEncodingXmlWriter- Throws:
IOException
-
writeCDataContent
- Specified by:
writeCDataContentin classEncodingXmlWriter- Throws:
IOException
-
writeCommentContent
- Specified by:
writeCommentContentin classEncodingXmlWriter- Throws:
IOException
-
writePIData
- Specified by:
writePIDatain classEncodingXmlWriter- Throws:
IOExceptionXMLStreamException
-
writeTextContent
- Specified by:
writeTextContentin classEncodingXmlWriter- Throws:
IOException
-
writeTextContent
- Specified by:
writeTextContentin classEncodingXmlWriter- Throws:
IOException
-
handleInvalidLatinChar
- Throws:
IOException
-