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
Fields -
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 TypeMethodDescriptionvoid
close()
Deprecated.static String
Deprecated.Deprecated.int
read
(char[] buf, int offset, int len) Deprecated.static void
setDefaultEncoding
(String encoding) Deprecated.Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
Field Details
-
reader
private final org.apache.commons.io.input.XmlStreamReader readerDeprecated. -
staticDefaultEncoding
Deprecated. -
ENCODING_PATTERN
Deprecated.
-
-
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
public XmlStreamReader(InputStream is, boolean lenient) throws IOException, XmlStreamReaderException Deprecated.- Parameters:
is
-InputStream
lenient
- yes/no- Throws:
IOException
- in case of an errorXmlStreamReaderException
- 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
-InputStream
httpContentType
- content type- Throws:
IOException
- in case of error
-
XmlStreamReader
public XmlStreamReader(InputStream is, String httpContentType, boolean lenient, String defaultEncoding) throws IOException, XmlStreamReaderException Deprecated.- Parameters:
is
-InputStream
httpContentType
- content typelenient
- yes/nodefaultEncoding
- the default encoding- Throws:
IOException
- in case of errorXmlStreamReaderException
- in case of error
-
XmlStreamReader
public XmlStreamReader(InputStream is, String httpContentType, boolean lenient) throws IOException, XmlStreamReaderException Deprecated.- Parameters:
is
-InputStream
httpContentType
- content typelenient
- yes/no- Throws:
IOException
- in case of errorXmlStreamReaderException
- 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:
read
in classReader
- Throws:
IOException
-
close
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-