Top Description Fields Constructors Methods
com.ctc.wstx.sw

public final Class ISOLatin1XmlWriter

extends EncodingXmlWriter
Class Inheritance
Imports
java.io.*, javax.xml.stream.XMLStreamException, com.ctc.wstx.api.WriterConfig, com.ctc.wstx.io.CharsetNames

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

Inherited from com.ctc.wstx.sw.EncodingXmlWriter:
BYTE_ABYTE_AMPBYTE_APOSBYTE_COLONBYTE_EQBYTE_GBYTE_GTBYTE_HASHBYTE_HYPHENBYTE_LBYTE_LBRACKETBYTE_LTBYTE_MBYTE_OBYTE_PBYTE_QBYTE_QMARKBYTE_QUOTBYTE_RBRACKETBYTE_SBYTE_SEMICOLONBYTE_SLASHBYTE_SPACEBYTE_TBYTE_UBYTE_XDEFAULT_BUFFER_SIZEmOutputBuffermOutputPtrmSurrogate

Constructor Summary

AccessConstructor and Description
public
ISOLatin1XmlWriter(OutputStream out, WriterConfig cfg, boolean autoclose)

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
protected void
writeAttrValue(char[] data, int offset, int len)

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeAttrValue.

protected int
protected int
writeCDataContent(char[] cbuf, int start, int len)

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeCDataContent.

protected int
protected int
public void
writeRaw(char[] cbuf, int offset, int len)

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeRaw.

public void
writeRaw(String str, int offset, int len)

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeRaw.

protected void
protected void
writeTextContent(char[] cbuf, int offset, int len)

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeTextContent.

Inherited from com.ctc.wstx.sw.EncodingXmlWriter:
calcSurrogatecloseflushflushBuffergetOutputPtrgetOutputStreamgetWriterthrowUnpairedSurrogatethrowUnpairedSurrogatewriteAsciiwriteAsciiwriteAsciiwriteAsEntitywriteAttributewriteAttributewriteAttributewriteAttributewriteCDatawriteCDatawriteCDataEndwriteCDataStartwriteCharacterswriteCharacterswriteCommentwriteCommentEndwriteCommentStartwriteDTDwriteDTDwriteEndTagwriteEndTagwriteEntityReferencewriteNamewriteNameUncheckedwritePIwritePIEndwritePIStartwriteRawAsciiwriteStartTagEmptyEndwriteStartTagEndwriteStartTagStartwriteStartTagStartwriteTypedAttributewriteTypedAttributewriteTypedAttributewriteTypedElementwriteTypedElementwriteXmlDeclaration

Constructor Detail

ISOLatin1XmlWriterback to summary
public ISOLatin1XmlWriter(OutputStream out, WriterConfig cfg, boolean autoclose) throws IOException

Method Detail

handleInvalidLatinCharback to summary
protected void handleInvalidLatinChar(int c) throws IOException
writeAttrValueback to summary
protected void writeAttrValue(String data) throws IOException

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeAttrValue.

Annotations
@Override
writeAttrValueback to summary
protected void writeAttrValue(char[] data, int offset, int len) throws IOException

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeAttrValue.

Annotations
@Override
writeCDataContentback to summary
protected int writeCDataContent(String data) throws IOException

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeCDataContent.

Annotations
@Override
writeCDataContentback to summary
protected int writeCDataContent(char[] cbuf, int start, int len) throws IOException

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeCDataContent.

Annotations
@Override
writeCommentContentback to summary
protected int writeCommentContent(String data) throws IOException

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeCommentContent.

Annotations
@Override
writePIDataback to summary
protected int writePIData(String data) throws IOException, XMLStreamException

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writePIData.

Annotations
@Override
writeRawback to summary
public void writeRaw(char[] cbuf, int offset, int len) throws IOException

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeRaw.

Annotations
@Override
writeRawback to summary
public void writeRaw(String str, int offset, int len) throws IOException

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeRaw.

Annotations
@Override
writeTextContentback to summary
protected void writeTextContent(String data) throws IOException

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeTextContent.

Annotations
@Override
writeTextContentback to summary
protected void writeTextContent(char[] cbuf, int offset, int len) throws IOException

Implements abstract com.ctc.wstx.sw.EncodingXmlWriter.writeTextContent.

Annotations
@Override