public class XmlStreamReader extends Reader
| Constructor and Description |
|---|
XmlStreamReader(File file) |
XmlStreamReader(InputStream is) |
XmlStreamReader(InputStream is,
boolean lenient) |
XmlStreamReader(InputStream is,
String httpContentType) |
XmlStreamReader(InputStream is,
String httpContentType,
boolean lenient) |
XmlStreamReader(InputStream is,
String httpContentType,
boolean lenient,
String defaultEncoding) |
XmlStreamReader(URL url) |
XmlStreamReader(URLConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static String |
getDefaultEncoding() |
String |
getEncoding() |
int |
read(char[] buf,
int offset,
int len) |
static void |
setDefaultEncoding(String encoding) |
public XmlStreamReader(File file) throws IOException
file - The file to create it from.IOException - in case of an error.public XmlStreamReader(InputStream is) throws IOException
is - InputStreamIOException - in case of an error.public XmlStreamReader(InputStream is, boolean lenient) throws IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is - InputStreamlenient - yes/noIOException - in case of an error.XmlStreamReaderException - in case of an error.public XmlStreamReader(URL url) throws IOException
url - URLIOException - in case of error.public XmlStreamReader(URLConnection conn) throws IOException
conn - The URL connection URLConnection.IOException - in case of error.public XmlStreamReader(InputStream is, String httpContentType) throws IOException
is - InputStreamhttpContentType - content type.IOException - in case of error.public XmlStreamReader(InputStream is, String httpContentType, boolean lenient, String defaultEncoding) throws IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is - InputStreamhttpContentType - content type.lenient - yes/no.defaultEncoding - The default encoding.IOException - in case of error.XmlStreamReaderException - in case of error.public XmlStreamReader(InputStream is, String httpContentType, boolean lenient) throws IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is - InputStreamhttpContentType - content type.lenient - yes/no.IOException - in case of error.XmlStreamReaderException - in case of error.public static void setDefaultEncoding(String encoding)
encoding - define the default encoding.public static String getDefaultEncoding()
public String getEncoding()
public int read(char[] buf,
int offset,
int len)
throws IOException
read in class ReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.