public class XMLIOSource extends XMLStringSource
InputStream
or Reader
.
This class uses XMLInputStreamReader
to read from
an InputStream
.
XMLInputStreamReader
,
InputStream
,
Reader
Constructor and Description |
---|
XMLIOSource(java.io.File file) |
XMLIOSource(java.io.InputStream in) |
XMLIOSource(java.io.Reader reader) |
XMLIOSource(java.net.URL url) |
Modifier and Type | Method and 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) |
charAt, length, substring
public XMLIOSource(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public XMLIOSource(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public XMLIOSource(java.io.File file) throws java.io.IOException
java.io.IOException
public XMLIOSource(java.net.URL url) throws java.io.IOException
java.io.IOException
public static java.lang.String toString(java.net.URL url) throws java.io.IOException
java.io.IOException
public static java.lang.String toString(java.io.File file) throws java.io.IOException
java.io.IOException
public static java.lang.String toString(java.io.InputStream in) throws java.io.IOException
in
- java.io.IOException
public static java.lang.String toString(java.io.Reader reader) throws java.io.IOException
Reader
into a String
java.io.IOException