Top Description Fields Constructors Methods
com.fasterxml.aalto.out

public final Class AsciiXmlWriter

extends SingleByteXmlWriter
Class Inheritance
Imports
java.io.*, javax.xml.stream.*

This is the generic implementation of XmlWriter, used if the destination is byte-based java.io.OutputStream, and encoding is 7-bit (US) Ascii.

Field Summary

Modifier and TypeField and Description
pack-priv static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected WName
protected WName
public int
getHighestEncodable()

Implements abstract com.fasterxml.aalto.out.SingleByteXmlWriter.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.
public void
writeRaw(char[] cbuf, int offset, int len)

Implements abstract com.fasterxml.aalto.out.SingleByteXmlWriter.writeRaw.

This method is heavily encoding-dependant, so it needs to be deferred to sub-classes
Inherited from com.fasterxml.aalto.out.SingleByteXmlWriter:
output2ByteCharoutputMultiByteCharoutputStrictMultiByteCharoutputSurrogates

Field Detail

LAST_VALID_CHARback to summary
pack-priv static final int LAST_VALID_CHAR

Constructor Detail

AsciiXmlWriterback to summary
public AsciiXmlWriter(WriterConfig cfg, OutputStream out)

Method Detail

doConstructNameback to summary
protected WName doConstructName(String localName) throws XMLStreamException

Implements abstract com.fasterxml.aalto.out.ByteXmlWriter.doConstructName.

Annotations
@Override
doConstructNameback to summary
protected WName doConstructName(String prefix, String localName) throws XMLStreamException

Implements abstract com.fasterxml.aalto.out.ByteXmlWriter.doConstructName.

Annotations
@Override
getHighestEncodableback to summary
public int getHighestEncodable()

Implements abstract com.fasterxml.aalto.out.SingleByteXmlWriter.getHighestEncodable.

Doc from com.fasterxml.aalto.out.XmlWriter.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.

Returns:int

Character code of the highest character that can be natively encoded.

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

Implements abstract com.fasterxml.aalto.out.SingleByteXmlWriter.writeRaw.

Doc from com.fasterxml.aalto.out.ByteXmlWriter.writeRaw.

This method is heavily encoding-dependant, so it needs to be deferred to sub-classes

Annotations
@Override