java.io.Closeable
, java.lang.AutoCloseable
, java.lang.Readable
public class XmlStreamReader
extends java.io.Reader
Constructor | 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 | 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) |
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, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is
- InputStream
lenient
- yes/nojava.io.IOException
- in case of an error.org.apache.maven.shared.utils.xml.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, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is
- InputStream
httpContentType
- content type.lenient
- yes/no.defaultEncoding
- The default encoding.java.io.IOException
- in case of error.org.apache.maven.shared.utils.xml.XmlStreamReaderException
- in case of error.public XmlStreamReader(java.io.InputStream is, java.lang.String httpContentType, boolean lenient) throws java.io.IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is
- InputStream
httpContentType
- content type.lenient
- yes/no.java.io.IOException
- in case of error.org.apache.maven.shared.utils.xml.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.lang.AutoCloseable
close
in interface java.io.Closeable
close
in class java.io.Reader
java.io.IOException
Copyright © 2018. All rights reserved.