public class XMLIOSource extends XMLStringSource
InputStream or Reader.
This class uses XMLInputStreamReader to read from
an InputStream.
XMLInputStreamReader,
InputStream,
Reader| Constructor and Description |
|---|
XMLIOSource(File file) |
XMLIOSource(InputStream in) |
XMLIOSource(Reader reader) |
XMLIOSource(URL url) |
| Modifier and Type | Method and Description |
|---|---|
static String |
toString(File file) |
static String |
toString(InputStream in) |
static String |
toString(Reader reader)
Helper method: Read everything from a
Reader into a String |
static String |
toString(URL url) |
charAt, length, substringpublic XMLIOSource(InputStream in) throws IOException
IOExceptionpublic XMLIOSource(Reader reader) throws IOException
IOExceptionpublic XMLIOSource(File file) throws IOException
IOExceptionpublic XMLIOSource(URL url) throws IOException
IOExceptionpublic static String toString(URL url) throws IOException
IOExceptionpublic static String toString(File file) throws IOException
IOExceptionpublic static String toString(InputStream in) throws IOException
in - IOExceptionpublic static String toString(Reader reader) throws IOException
Reader into a StringIOExceptionCopyright © 2008-2015. All Rights Reserved.