public class XmlStreamReader
extends java.io.Reader
Modifier and Type | Field and Description |
---|---|
(package private) static java.util.regex.Pattern |
ENCODING_PATTERN |
private org.apache.commons.io.input.XmlStreamReader |
reader |
private static java.lang.String |
staticDefaultEncoding |
Constructor and Description |
---|
XmlStreamReader(java.io.File file) |
XmlStreamReader(java.io.InputStream is) |
XmlStreamReader(java.io.InputStream is,
boolean lenient) |
XmlStreamReader(java.io.InputStream is,
java.lang.String httpContentType) |
XmlStreamReader(java.io.InputStream is,
java.lang.String httpContentType,
boolean lenient) |
XmlStreamReader(java.io.InputStream is,
java.lang.String httpContentType,
boolean lenient,
java.lang.String defaultEncoding) |
XmlStreamReader(java.net.URL url) |
XmlStreamReader(java.net.URLConnection conn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static java.lang.String |
getDefaultEncoding() |
java.lang.String |
getEncoding() |
int |
read(char[] buf,
int offset,
int len) |
static void |
setDefaultEncoding(java.lang.String encoding) |
private final org.apache.commons.io.input.XmlStreamReader reader
private static java.lang.String staticDefaultEncoding
static final java.util.regex.Pattern ENCODING_PATTERN
public XmlStreamReader(java.io.File file) throws java.io.IOException
file
- The file to create it from.java.io.IOException
- in case of an error.public XmlStreamReader(java.io.InputStream is) throws java.io.IOException
is
- InputStream
java.io.IOException
- in case of an error.public XmlStreamReader(java.io.InputStream is, boolean lenient) throws java.io.IOException, XmlStreamReaderException
is
- InputStream
lenient
- yes/nojava.io.IOException
- in case of an error.XmlStreamReaderException
- in case of an error.public XmlStreamReader(java.net.URL url) throws java.io.IOException
url
- URL
java.io.IOException
- in case of error.public XmlStreamReader(java.net.URLConnection conn) throws java.io.IOException
conn
- The URL connection URLConnection
.java.io.IOException
- in case of error.public XmlStreamReader(java.io.InputStream is, java.lang.String httpContentType) throws java.io.IOException
is
- InputStream
httpContentType
- content type.java.io.IOException
- in case of error.public XmlStreamReader(java.io.InputStream is, java.lang.String httpContentType, boolean lenient, java.lang.String defaultEncoding) throws java.io.IOException, XmlStreamReaderException
is
- InputStream
httpContentType
- content type.lenient
- yes/no.defaultEncoding
- The default encoding.java.io.IOException
- in case of error.XmlStreamReaderException
- in case of error.public XmlStreamReader(java.io.InputStream is, java.lang.String httpContentType, boolean lenient) throws java.io.IOException, XmlStreamReaderException
is
- InputStream
httpContentType
- content type.lenient
- yes/no.java.io.IOException
- in case of error.XmlStreamReaderException
- in case of error.public static void setDefaultEncoding(java.lang.String encoding)
encoding
- define the default encoding.public static java.lang.String getDefaultEncoding()
public java.lang.String getEncoding()
public int read(char[] buf, int offset, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException