public abstract class SingleByteXmlWriter extends ByteXmlWriter
_charTypes, _out, _outputBuffer, _outputBufferLen, _outputPtr, _surrogate_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 |
|---|
SingleByteXmlWriter(WriterConfig cfg,
OutputStream out,
XmlCharTypes charTypes) |
| Modifier and Type | Method and Description |
|---|---|
abstract 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.
|
protected void |
output2ByteChar(int ch) |
protected int |
outputMultiByteChar(int ch,
char[] cbuf,
int inputOffset,
int inputLen)
This can be done, although only by using character entities.
|
protected int |
outputStrictMultiByteChar(int ch,
char[] cbuf,
int inputOffset,
int inputLen)
With single byte encodings, there's no way to express these
characters without character entities.
|
protected void |
outputSurrogates(int surr1,
int surr2)
Method called to output a composite character, result of
combining 2 surrogate characters.
|
abstract void |
writeRaw(char[] cbuf,
int offset,
int len)
This method is heavily encoding-dependant, so it needs
to be deferred to sub-classes
|
_closeTarget, _releaseBuffers, calcSurrogate, constructName, constructName, doConstructName, doConstructName, 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, writeXmlDeclarationclose, enableXml11, getAbsOffset, getColumn, getRow, guessEncodingBitSize, reportFailedEscaping, reportInvalidChar, reportInvalidEmptyName, reportNwfContent, reportNwfContent, reportNwfName, reportNwfName, throwOutputError, throwOutputErrorpublic SingleByteXmlWriter(WriterConfig cfg, OutputStream out, XmlCharTypes charTypes)
public abstract int getHighestEncodable()
XmlWritergetHighestEncodable in class XmlWriterpublic abstract void writeRaw(char[] cbuf,
int offset,
int len)
throws IOException,
XMLStreamException
ByteXmlWriterwriteRaw in class ByteXmlWriterIOExceptionXMLStreamExceptionprotected final void output2ByteChar(int ch)
throws IOException,
XMLStreamException
output2ByteChar in class ByteXmlWriterIOExceptionXMLStreamExceptionprotected final int outputStrictMultiByteChar(int ch,
char[] cbuf,
int inputOffset,
int inputLen)
throws IOException,
XMLStreamException
outputStrictMultiByteChar in class ByteXmlWriterIOExceptionXMLStreamExceptionprotected final int outputMultiByteChar(int ch,
char[] cbuf,
int inputOffset,
int inputLen)
throws IOException,
XMLStreamException
outputMultiByteChar in class ByteXmlWriterIOExceptionXMLStreamExceptionprotected final void outputSurrogates(int surr1,
int surr2)
throws IOException,
XMLStreamException
ByteXmlWriteroutputSurrogates in class ByteXmlWriterIOExceptionXMLStreamExceptionCopyright © 2018 FasterXML. All rights reserved.