com.ctc.wstx.sw
Class AsciiXmlWriter

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

public final class AsciiXmlWriter
extends EncodingXmlWriter

Concrete implementation of EncodingXmlWriter used when output is to be encoded using 7-bit ascii (US-ASCII) encoding.


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
AsciiXmlWriter(java.io.OutputStream out, WriterConfig cfg, boolean autoclose)
           
 
Method Summary
protected  void throwInvalidAsciiChar(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

AsciiXmlWriter

public AsciiXmlWriter(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

throwInvalidAsciiChar

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