org.apache.maven.shared.utils.xml
Class XmlStreamReader

java.lang.Object
  extended by java.io.Reader
      extended by org.apache.maven.shared.utils.xml.XmlStreamReader
All Implemented Interfaces:
Closeable, Readable

public class XmlStreamReader
extends Reader


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
XmlStreamReader(File file)
           
XmlStreamReader(InputStream is)
           
XmlStreamReader(InputStream is, boolean lenient)
           
XmlStreamReader(InputStream is, String httpContentType)
           
XmlStreamReader(InputStream is, String httpContentType, boolean lenient)
           
XmlStreamReader(InputStream is, String httpContentType, boolean lenient, String defaultEncoding)
           
XmlStreamReader(URL url)
           
XmlStreamReader(URLConnection conn)
           
 
Method Summary
 void close()
           
static String getDefaultEncoding()
           
 String getEncoding()
           
 int read(char[] buf, int offset, int len)
           
static void setDefaultEncoding(String encoding)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.