public class EscapingOutputStreamWriter
extends java.io.OutputStreamWriter
XMLStreamWriter that filters out UTF-8 characters that
are illegal in XML.| Modifier and Type | Field and Description |
|---|---|
static char |
SUBSTITUTE
A character that is used to replace illegal characters.
|
| Constructor and Description |
|---|
EscapingOutputStreamWriter(java.io.OutputStream out,
java.lang.String charsetName)
Creates an OutputStreamWriter that uses the named charset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(java.lang.String str,
int off,
int len) |
public static final char SUBSTITUTE
public EscapingOutputStreamWriter(java.io.OutputStream out,
java.lang.String charsetName)
throws java.io.UnsupportedEncodingException
out - An OutputStreamcharsetName - The name of a supported
charsetjava.io.UnsupportedEncodingException - If the named encoding is not supportedpublic void write(int c)
throws java.io.IOException
write in class java.io.OutputStreamWriterjava.io.IOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamWriterjava.io.IOExceptionpublic void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamWriterjava.io.IOExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.