XmlWriter, used if
the destination is byte-based java.io.OutputStream , and
encoding is UTF-8.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected WName | doConstructName(String localName)
Implements abstract com. |
| protected WName | doConstructName(String prefix, String localName)
Implements abstract com. |
| public int | getHighestEncodable()
Implements abstract com. |
| protected final void | |
| protected final int | outputMultiByteChar(int ch, char[] cbuf, int
Input pointer after character has been handled;
either same as one passed in, or one more if a surrogate character
was succesfully handled inputOffset, int inputLen)Implements abstract com. |
| protected final int | outputStrictMultiByteChar(int ch, char[] cbuf, int inputOffset, int inputLen)
Implements abstract com. |
| protected final void | outputSurrogates(int surr1, int surr2)
Implements abstract com. |
| public void | writeRaw(char[] cbuf, int offset, int len)
Implements abstract com. |
| Utf8XmlWriter | back to summary |
|---|---|
| public Utf8XmlWriter(WriterConfig cfg, OutputStream out) | |
| doConstructName | back to summary |
|---|---|
| protected WName doConstructName(String localName) throws XMLStreamException Implements abstract com.
| |
| doConstructName | back to summary |
|---|---|
| protected WName doConstructName(String prefix, String localName) throws XMLStreamException Implements abstract com.
| |
| getHighestEncodable | back to summary |
|---|---|
| public int getHighestEncodable() Implements abstract com. Doc from com. 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.
| |
| output2ByteChar | back to summary |
|---|---|
| protected final void output2ByteChar(int ch) throws IOException, XMLStreamException Implements abstract com.
| |
| outputMultiByteChar | back to summary |
|---|---|
| protected final int outputMultiByteChar(int ch, char[] cbuf, int inputOffset, int inputLen) throws IOException, XMLStreamException Implements abstract com. Method called to output a character that is beyond range of 1- and 2-byte UTF-8 encodings. This means it's either invalid character, or needs to be encoded using 3- or 4-byte encoding.
| |
| outputStrictMultiByteChar | back to summary |
|---|---|
| protected final int outputStrictMultiByteChar(int ch, char[] cbuf, int inputOffset, int inputLen) throws IOException, XMLStreamException Implements abstract com. Doc from com. Method called to output a character beyond basic 1- or 2-byte encoding (code 0x0800 and above), without being able to use character entities
| |
| outputSurrogates | back to summary |
|---|---|
| protected final void outputSurrogates(int surr1, int surr2) throws IOException, XMLStreamException Implements abstract com. Doc from com. Method called to output a composite character, result of combining 2 surrogate characters.
| |
| writeRaw | back to summary |
|---|---|
| public void writeRaw(char[] cbuf, int offset, int len) throws IOException, XMLStreamException Implements abstract com. Doc from com. This method is heavily encoding-dependant, so it needs to be deferred to sub-classes
| |