Class XmlStreamReader

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

@Deprecated public class XmlStreamReader extends Reader
Deprecated.
use org.apache.commons.io.input.XmlStreamReader instead
  • Constructor Details

    • XmlStreamReader

      public XmlStreamReader(File file) throws IOException
      Deprecated.
      Parameters:
      file - The file to create it from.
      Throws:
      IOException - in case of an error
    • XmlStreamReader

      public XmlStreamReader(InputStream is) throws IOException
      Deprecated.
      Parameters:
      is - InputStream
      Throws:
      IOException - in case of an error
    • XmlStreamReader

      public XmlStreamReader(InputStream is, boolean lenient) throws IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
      Deprecated.
      Parameters:
      is - InputStream
      lenient - yes/no
      Throws:
      IOException - in case of an error
      org.apache.maven.shared.utils.xml.XmlStreamReaderException - in case of an error
    • XmlStreamReader

      public XmlStreamReader(URL url) throws IOException
      Deprecated.
      Parameters:
      url - URL
      Throws:
      IOException - in case of error
    • XmlStreamReader

      public XmlStreamReader(URLConnection conn) throws IOException
      Deprecated.
      Parameters:
      conn - The URL connection URLConnection
      Throws:
      IOException - in case of error
    • XmlStreamReader

      public XmlStreamReader(InputStream is, String httpContentType) throws IOException
      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, org.apache.maven.shared.utils.xml.XmlStreamReaderException
      Deprecated.
      Parameters:
      is - InputStream
      httpContentType - content type
      lenient - yes/no
      defaultEncoding - the default encoding
      Throws:
      IOException - in case of error
      org.apache.maven.shared.utils.xml.XmlStreamReaderException - in case of error
    • XmlStreamReader

      public XmlStreamReader(InputStream is, String httpContentType, boolean lenient) throws IOException, org.apache.maven.shared.utils.xml.XmlStreamReaderException
      Deprecated.
      Parameters:
      is - InputStream
      httpContentType - content type
      lenient - yes/no
      Throws:
      IOException - in case of error
      org.apache.maven.shared.utils.xml.XmlStreamReaderException - in case of error
  • Method Details

    • setDefaultEncoding

      public static void setDefaultEncoding(String encoding)
      Deprecated.
      Parameters:
      encoding - define the default encoding.
    • getDefaultEncoding

      public static String getDefaultEncoding()
      Deprecated.
      Returns:
      the default encoding.
    • getEncoding

      public String getEncoding()
      Deprecated.
      Returns:
      the current encoding
    • read

      public int read(char[] buf, int offset, int len) throws IOException
      Deprecated.
      Specified by:
      read in class Reader
      Throws:
      IOException
    • close

      public void close() throws IOException
      Deprecated.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class Reader
      Throws:
      IOException