Class XmlStreamReader
java.lang.Object
java.io.Reader
org.apache.maven.shared.utils.xml.XmlStreamReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
Deprecated.
use org.apache.commons.io.input.XmlStreamReader instead
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionXmlStreamReader(File file) Deprecated.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. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.static StringDeprecated.Deprecated.intread(char[] buf, int offset, int len) Deprecated.static voidsetDefaultEncoding(String encoding) Deprecated.Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
Constructor Details
-
XmlStreamReader
Deprecated.- Parameters:
file- The file to create it from.- Throws:
IOException- in case of an error
-
XmlStreamReader
Deprecated.- Parameters:
is-InputStream- Throws:
IOException- in case of an error
-
XmlStreamReader
Deprecated.- Parameters:
is-InputStreamlenient- yes/no- Throws:
IOException- in case of an error
-
XmlStreamReader
Deprecated.- Parameters:
url-URL- Throws:
IOException- in case of error
-
XmlStreamReader
Deprecated.- Parameters:
conn- The URL connectionURLConnection- Throws:
IOException- in case of error
-
XmlStreamReader
Deprecated.- Parameters:
is-InputStreamhttpContentType- content type- Throws:
IOException- in case of error
-
XmlStreamReader
public XmlStreamReader(InputStream is, String httpContentType, boolean lenient, String defaultEncoding) throws IOException Deprecated.- Parameters:
is-InputStreamhttpContentType- content typelenient- yes/nodefaultEncoding- the default encoding- Throws:
IOException- in case of error
-
XmlStreamReader
Deprecated.- Parameters:
is-InputStreamhttpContentType- content typelenient- yes/no- Throws:
IOException- in case of error
-
-
Method Details
-
setDefaultEncoding
Deprecated.- Parameters:
encoding- define the default encoding.
-
getDefaultEncoding
Deprecated.- Returns:
- the default encoding.
-
getEncoding
Deprecated.- Returns:
- the current encoding
-
read
Deprecated.- Specified by:
readin classReader- Throws:
IOException
-
close
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-