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, substring
public XMLIOSource(InputStream in) throws IOException
IOException
public XMLIOSource(Reader reader) throws IOException
IOException
public XMLIOSource(File file) throws IOException
IOException
public XMLIOSource(URL url) throws IOException
IOException
public static String toString(URL url) throws IOException
IOException
public static String toString(File file) throws IOException
IOException
public static String toString(InputStream in) throws IOException
in
- IOException
public static String toString(Reader reader) throws IOException
Reader
into a String
IOException
Copyright © 2008–2021. All rights reserved.