@Deprecated public class XmlStreamReader extends Reader
Constructor and Description |
---|
XmlStreamReader(File file)
Deprecated.
|
XmlStreamReader(InputStream is)
Deprecated.
|
XmlStreamReader(InputStream is,
boolean lenient)
Deprecated.
|
XmlStreamReader(InputStream is,
String httpContentType)
Deprecated.
|
XmlStreamReader(InputStream is,
String httpContentType,
boolean lenient)
Deprecated.
|
XmlStreamReader(InputStream is,
String httpContentType,
boolean lenient,
String defaultEncoding)
Deprecated.
|
XmlStreamReader(URL url)
Deprecated.
|
XmlStreamReader(URLConnection conn)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
static String |
getDefaultEncoding()
Deprecated.
|
String |
getEncoding()
Deprecated.
|
int |
read(char[] buf,
int offset,
int len)
Deprecated.
|
static void |
setDefaultEncoding(String encoding)
Deprecated.
|
public XmlStreamReader(File file) throws IOException
file
- The file to create it from.IOException
- in case of an errorpublic XmlStreamReader(InputStream is) throws IOException
is
- InputStream
IOException
- in case of an errorpublic XmlStreamReader(InputStream is, boolean lenient) throws IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is
- InputStream
lenient
- yes/noIOException
- in case of an errorXmlStreamReaderException
- in case of an errorpublic XmlStreamReader(URL url) throws IOException
url
- URL
IOException
- in case of errorpublic XmlStreamReader(URLConnection conn) throws IOException
conn
- The URL connection URLConnection
IOException
- in case of errorpublic XmlStreamReader(InputStream is, String httpContentType) throws IOException
is
- InputStream
httpContentType
- content typeIOException
- in case of errorpublic XmlStreamReader(InputStream is, String httpContentType, boolean lenient, String defaultEncoding) throws IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is
- InputStream
httpContentType
- content typelenient
- yes/nodefaultEncoding
- the default encodingIOException
- in case of errorXmlStreamReaderException
- in case of errorpublic XmlStreamReader(InputStream is, String httpContentType, boolean lenient) throws IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is
- InputStream
httpContentType
- content typelenient
- yes/noIOException
- in case of errorXmlStreamReaderException
- in case of errorpublic 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–2020 The Apache Software Foundation. All rights reserved.