de.pdark.decentxml
Class XMLIOSource

java.lang.Object
  extended by de.pdark.decentxml.XMLStringSource
      extended by de.pdark.decentxml.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

Constructor Summary
XMLIOSource(java.io.File file)
           
XMLIOSource(java.io.InputStream in)
           
XMLIOSource(java.io.Reader reader)
           
XMLIOSource(java.net.URL url)
           
 
Method Summary
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 de.pdark.decentxml.XMLStringSource
charAt, length, substring
 
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


Copyright © 2008-2011. All Rights Reserved.