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, substringpublic XMLIOSource(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic XMLIOSource(java.io.Reader reader)
throws java.io.IOException
java.io.IOExceptionpublic XMLIOSource(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic XMLIOSource(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String toString(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String toString(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String toString(java.io.InputStream in)
throws java.io.IOException
in - java.io.IOExceptionpublic static java.lang.String toString(java.io.Reader reader)
throws java.io.IOException
Reader into a Stringjava.io.IOException