public final class Latin1XmlWriter extends SingleByteXmlWriter
XmlWriter
, used if
the destination is byte-based OutputStream
, and
encoding is ISO-8859-1 (aka Latin1)Modifier and Type | Field and Description |
---|---|
(package private) static int |
LAST_VALID_CHAR
Decode tables will have enough entries for the full 8-bit range
|
_charTypes, _out, _outputBuffer, _outputBufferLen, _outputPtr, _surrogate, 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, BYTES_CDATA_END, BYTES_CDATA_START, BYTES_COMMENT_END, BYTES_COMMENT_START, BYTES_XMLDECL_ENCODING, BYTES_XMLDECL_STANDALONE, BYTES_XMLDECL_START, DEFAULT_COPY_BUFFER_SIZE, DEFAULT_FULL_BUFFER_SIZE, SMALL_WRITE
_cfgNsAware, _checkContent, _checkNames, _config, _copyBuffer, _copyBufferLen, _locPastChars, _locRowNr, _locRowStartOffset, _xml11, ATTR_MIN_ARRAYCOPY, DEFAULT_COPYBUFFER_LEN, MIN_ARRAYCOPY, SURR1_FIRST, SURR1_LAST, SURR2_FIRST, SURR2_LAST
Constructor and Description |
---|
Latin1XmlWriter(WriterConfig cfg,
java.io.OutputStream out) |
Modifier and Type | Method and Description |
---|---|
protected WName |
doConstructName(java.lang.String localName) |
protected WName |
doConstructName(java.lang.String prefix,
java.lang.String localName) |
int |
getHighestEncodable()
Method called by error reporting code, to figure out if a given
character is encodable (without using character entities) with
the current encoding or not.
|
void |
writeRaw(char[] cbuf,
int offset,
int len)
This method is heavily encoding-dependant, so it needs
to be deferred to sub-classes
|
output2ByteChar, outputMultiByteChar, outputStrictMultiByteChar, outputSurrogates
_closeTarget, _releaseBuffers, calcSurrogate, constructName, constructName, fastWriteAttrValue, flush, flushBuffer, getAscii, getAscii, getAscii, getOutputPtr, throwUnpairedSurrogate, throwUnpairedSurrogate, verifyNameComponent, writeAsEntity, writeAttribute, writeAttribute, writeAttribute, writeAttrValue, writeCData, writeCData, writeCDataContents, writeCDataEnd, writeCDataStart, writeCharacters, writeCharacters, writeComment, writeCommentContents, writeCommentEnd, writeCommentStart, writeDTD, writeDTD, writeEndTag, writeEntityReference, writeLongAttribute, writeName, writeName, writeName, writePI, writePIData, writeRaw, writeRaw, writeRaw, writeRaw, writeRaw, writeSpace, writeSpace, writeStartTagEmptyEnd, writeStartTagEnd, writeStartTagStart, writeTypedValue, writeXmlDeclaration
close, enableXml11, getAbsOffset, getColumn, getRow, guessEncodingBitSize, reportFailedEscaping, reportInvalidChar, reportInvalidEmptyName, reportNwfContent, reportNwfContent, reportNwfName, reportNwfName, throwOutputError, throwOutputError
static final int LAST_VALID_CHAR
public Latin1XmlWriter(WriterConfig cfg, java.io.OutputStream out)
public int getHighestEncodable()
XmlWriter
getHighestEncodable
in class SingleByteXmlWriter
public void writeRaw(char[] cbuf, int offset, int len) throws java.io.IOException, javax.xml.stream.XMLStreamException
ByteXmlWriter
writeRaw
in class SingleByteXmlWriter
java.io.IOException
javax.xml.stream.XMLStreamException
protected WName doConstructName(java.lang.String localName) throws javax.xml.stream.XMLStreamException
doConstructName
in class ByteXmlWriter
javax.xml.stream.XMLStreamException
protected WName doConstructName(java.lang.String prefix, java.lang.String localName) throws javax.xml.stream.XMLStreamException
doConstructName
in class ByteXmlWriter
javax.xml.stream.XMLStreamException