org.apache.maven.shared.utils.xml
Class XmlStreamReader
java.lang.Object
java.io.Reader
org.apache.maven.shared.utils.xml.XmlStreamReader
- All Implemented Interfaces:
- Closeable, Readable
public class XmlStreamReader
- extends Reader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlStreamReader
public XmlStreamReader(File file)
throws IOException
- Throws:
IOException
XmlStreamReader
public XmlStreamReader(InputStream is)
throws IOException
- Throws:
IOException
XmlStreamReader
public XmlStreamReader(InputStream is,
boolean lenient)
throws IOException,
org.apache.maven.shared.utils.xml.XmlStreamReaderException
- Throws:
IOException
org.apache.maven.shared.utils.xml.XmlStreamReaderException
XmlStreamReader
public XmlStreamReader(URL url)
throws IOException
- Throws:
IOException
XmlStreamReader
public XmlStreamReader(URLConnection conn)
throws IOException
- Throws:
IOException
XmlStreamReader
public XmlStreamReader(InputStream is,
String httpContentType)
throws IOException
- Throws:
IOException
XmlStreamReader
public XmlStreamReader(InputStream is,
String httpContentType,
boolean lenient,
String defaultEncoding)
throws IOException,
org.apache.maven.shared.utils.xml.XmlStreamReaderException
- Throws:
IOException
org.apache.maven.shared.utils.xml.XmlStreamReaderException
XmlStreamReader
public XmlStreamReader(InputStream is,
String httpContentType,
boolean lenient)
throws IOException,
org.apache.maven.shared.utils.xml.XmlStreamReaderException
- Throws:
IOException
org.apache.maven.shared.utils.xml.XmlStreamReaderException
setDefaultEncoding
public static void setDefaultEncoding(String encoding)
getDefaultEncoding
public static String getDefaultEncoding()
getEncoding
public String getEncoding()
read
public int read(char[] buf,
int offset,
int len)
throws IOException
- Specified by:
read
in class Reader
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Reader
- Throws:
IOException
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.