@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 - InputStreamIOException - in case of an errorpublic XmlStreamReader(InputStream is, boolean lenient) throws IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
is - InputStreamlenient - yes/noIOException - in case of an errorXmlStreamReaderException - in case of an errorpublic XmlStreamReader(URL url) throws IOException
url - URLIOException - in case of errorpublic XmlStreamReader(URLConnection conn) throws IOException
conn - The URL connection URLConnectionIOException - in case of errorpublic XmlStreamReader(InputStream is, String httpContentType) throws IOException
is - InputStreamhttpContentType - 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 - InputStreamhttpContentType - 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 - InputStreamhttpContentType - 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 ReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.