com.ctc.wstx.sw
Class ISOLatin1XmlWriter

java.lang.Object
  extended by com.ctc.wstx.sw.XmlWriter
      extended by com.ctc.wstx.sw.EncodingXmlWriter
          extended by com.ctc.wstx.sw.ISOLatin1XmlWriter

public final class ISOLatin1XmlWriter
extends EncodingXmlWriter

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
mOut, mOutputBuffer, mOutputPtr, mSurrogate
 
Fields inherited from class com.ctc.wstx.sw.XmlWriter
DEFAULT_QUOTE_CHAR, mAttrValueWriter, mAutoCloseOutput, mCheckContent, mCheckNames, mCheckStructure, mConfig, mEncoding, mFixContent, mLocPastChars, mLocRowNr, mLocRowStartOffset, mNsAware, mRawWrapper, mTextWrapper, mTextWriter, mXml11, SURR1_FIRST, SURR1_LAST, SURR2_FIRST, SURR2_LAST
 
Constructor Summary
ISOLatin1XmlWriter(java.io.OutputStream out, WriterConfig cfg, boolean autoclose)
           
 
Method Summary
protected  void throwInvalidLatinChar(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)
           
 
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, writeStartTagEmptyEnd, writeStartTagEnd, writeStartTagStart, writeStartTagStart, writeXmlDeclaration
 
Methods inherited from class com.ctc.wstx.sw.XmlWriter
enableXml11, getAbsOffset, getColumn, getRow, reportNwfContent, reportNwfName, reportNwfName, throwInvalidChar, throwOutputError, throwOutputError, verifyNameValidity, wrapAsRawWriter, wrapAsTextWriter, writeRaw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISOLatin1XmlWriter

public ISOLatin1XmlWriter(java.io.OutputStream out,
                          WriterConfig cfg,
                          boolean autoclose)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

writeRaw

public void writeRaw(char[] cbuf,
                     int offset,
                     int len)
              throws java.io.IOException
Specified by:
writeRaw in class EncodingXmlWriter
Throws:
java.io.IOException

writeRaw

public void writeRaw(java.lang.String str,
                     int offset,
                     int len)
              throws java.io.IOException
Specified by:
writeRaw in class EncodingXmlWriter
Throws:
java.io.IOException

writeAttrValue

protected void writeAttrValue(java.lang.String data)
                       throws java.io.IOException
Specified by:
writeAttrValue in class EncodingXmlWriter
Throws:
java.io.IOException

writeAttrValue

protected void writeAttrValue(char[] data,
                              int offset,
                              int len)
                       throws java.io.IOException
Specified by:
writeAttrValue in class EncodingXmlWriter
Throws:
java.io.IOException

writeCDataContent

protected int writeCDataContent(java.lang.String data)
                         throws java.io.IOException
Specified by:
writeCDataContent in class EncodingXmlWriter
Throws:
java.io.IOException

writeCDataContent

protected int writeCDataContent(char[] cbuf,
                                int start,
                                int len)
                         throws java.io.IOException
Specified by:
writeCDataContent in class EncodingXmlWriter
Throws:
java.io.IOException

writeCommentContent

protected int writeCommentContent(java.lang.String data)
                           throws java.io.IOException
Specified by:
writeCommentContent in class EncodingXmlWriter
Throws:
java.io.IOException

writePIData

protected int writePIData(java.lang.String data)
                   throws java.io.IOException,
                          javax.xml.stream.XMLStreamException
Specified by:
writePIData in class EncodingXmlWriter
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

writeTextContent

protected void writeTextContent(java.lang.String data)
                         throws java.io.IOException
Specified by:
writeTextContent in class EncodingXmlWriter
Throws:
java.io.IOException

writeTextContent

protected void writeTextContent(char[] cbuf,
                                int offset,
                                int len)
                         throws java.io.IOException
Specified by:
writeTextContent in class EncodingXmlWriter
Throws:
java.io.IOException

throwInvalidLatinChar

protected void throwInvalidLatinChar(int c)
                              throws java.io.IOException
Throws:
java.io.IOException