Class XMLIOSource

  • All Implemented Interfaces:
    XMLSource

    public class XMLIOSource
    extends XMLStringSource
    An XML source based on InputStream or Reader.

    This class uses XMLInputStreamReader to read from an InputStream.

    Author:
    digulla
    See Also:
    XMLInputStreamReader, InputStream, Reader
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toString​(java.io.File file)  
      static java.lang.String toString​(java.io.InputStream in)  
      static java.lang.String toString​(java.io.Reader reader)
      Helper method: Read everything from a Reader into a String
      static java.lang.String toString​(java.net.URL url)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLIOSource

        public XMLIOSource​(java.io.InputStream in)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • XMLIOSource

        public XMLIOSource​(java.io.Reader reader)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • XMLIOSource

        public XMLIOSource​(java.io.File file)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • XMLIOSource

        public XMLIOSource​(java.net.URL url)
                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • toString

        public static java.lang.String toString​(java.net.URL url)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public static java.lang.String toString​(java.io.File file)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public static java.lang.String toString​(java.io.InputStream in)
                                         throws java.io.IOException
        Parameters:
        in -
        Returns:
        Throws:
        java.io.IOException
      • toString

        public static java.lang.String toString​(java.io.Reader reader)
                                         throws java.io.IOException
        Helper method: Read everything from a Reader into a String
        Throws:
        java.io.IOException