de.pdark.decentxml
Class XMLIOSource
java.lang.Object
de.pdark.decentxml.XMLStringSource
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.