| Modifier and Type | Field and Description |
|---|---|
| private CharsetEncoder | _encoder
In some cases, this charset encoder is used to determine if a char is encodable by underlying writer. |
| private Writer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| pack-priv void | |
| pack-priv void | |
| private Writer | Returns: A suitable writerThe output stream output, String The encoding encoding, Charset cs)Returns a writer for the specified encoding based on an output stream. |
| private void | |
| public void | |
| public void | |
| public void | |
| pack-priv void |
| _encoder | back to summary |
|---|---|
| private CharsetEncoder _encoder In some cases, this charset encoder is used to determine if a char is encodable by underlying writer. For example, an 8-bit char from the extended ASCII set is not encodable by 7-bit ASCII encoder. Unencodable chars are escaped using XML numeric entities. | |
| _writer | back to summary |
|---|---|
| private Writer _writer | |
| XMLWriter | back to summary |
|---|---|
| public XMLWriter(OutputStream os, String encoding, Charset cs) throws XMLStreamException | |
| canEncode | back to summary |
|---|---|
| public boolean canEncode(char ch) | |
| close | back to summary |
|---|---|
| pack-priv void close() throws XMLStreamException | |
| flush | back to summary |
|---|---|
| pack-priv void flush() throws XMLStreamException | |
| getWriter | back to summary |
|---|---|
| private Writer getWriter(OutputStream output, String encoding, Charset cs) throws XMLStreamException, UnsupportedEncodingException Returns a writer for the specified encoding based on an output stream.
| |
| nl | back to summary |
|---|---|
| private void nl() throws XMLStreamException | |
| write | back to summary |
|---|---|
| public void write(String s) throws XMLStreamException | |
| write | back to summary |
|---|---|
| public void write(String str, int off, int len) throws XMLStreamException | |
| write | back to summary |
|---|---|
| public void write(char[] cbuf, int off, int len) throws XMLStreamException | |
| write | back to summary |
|---|---|
| pack-priv void write(int b) throws XMLStreamException | |