public interface ObjectParser
Implementations should normally be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
<T> T |
parseAndClose(InputStream
Parses the given input stream into a new instance of the the given data class of key/value pairs and closes the input stream.
|
Object |
parseAndClose(InputStream
Parses the given input stream into a new instance of the the given data type of key/value pairs and closes the input stream.
|
<T> T |
parseAndClose(Reader
Parses the given reader into a new instance of the the given data class of key/value pairs and closes the reader.
|
Object |
parseAndClose(Reader
Parses the given reader into a new instance of the the given data type of key/value pairs and closes the reader.
|
<T> T parseAndClose(InputStreamin, Charset charset, Class <T> dataClass) throws IOException
in - input stream which contains the data to parse
charset - charset which should be used to decode the input stream or
null if unknown
dataClass - class into which the data is parsed
IOException
ObjectparseAndClose(InputStream in, Charset charset, Type dataType) throws IOException
in - input stream which contains the data to parse
charset - charset which should be used to decode the input stream or
null if unknown
dataType - type into which the data is parsed
IOException
<T> T parseAndClose(Readerreader, Class <T> dataClass) throws IOException
reader - reader which contains the text data to parse
dataClass - class into which the data is parsed
IOException
ObjectparseAndClose(Reader reader, Type dataType) throws IOException
reader - reader which contains the text data to parse
dataType - type into which the data is parsed
IOException