public class XmlStreamReader
extends java.io.Reader
| 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) |
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 - InputStreamjava.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 - InputStreamlenient - 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 - URLjava.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 - InputStreamhttpContentType - 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 - InputStreamhttpContentType - 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,
org.apache.maven.shared.utils.xml.XmlStreamReaderException
is - InputStreamhttpContentType - 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.Readerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOException