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
- InputStream
IOException
- in case of an error.public XmlStreamReader(InputStream is, boolean lenient) throws IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is
- InputStream
lenient
- yes/noIOException
- in case of an error.XmlStreamReaderException
- in case of an error.public XmlStreamReader(URL url) throws IOException
url
- URL
IOException
- 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
- InputStream
httpContentType
- 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
- InputStream
httpContentType
- 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
- InputStream
httpContentType
- 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 Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.