public class ParseSource
extends java.lang.Object
Constructor and Description |
---|
ParseSource(java.io.InputStream inputStream)
Constructs a new GData input source using data from an
InputStream . |
ParseSource(java.io.Reader reader)
Constructs a new GData input source using data from a
Reader . |
ParseSource(XmlEventSource eventSource)
Constructs a new GData input source using data from an
XmlParser . |
Modifier and Type | Method and Description |
---|---|
XmlEventSource |
getEventSource()
Returns the
Reader associated with the input source or
null if associated with a different source type. |
java.io.InputStream |
getInputStream()
Returns the
Reader associated with the input source or
null if associated with a different source type. |
java.io.Reader |
getReader()
Returns the
Reader associated with the input source or
null if associated with a different source type. |
public ParseSource(java.io.Reader reader)
Reader
.public ParseSource(java.io.InputStream inputStream)
InputStream
.public ParseSource(XmlEventSource eventSource)
XmlParser
.public final java.io.Reader getReader()
Reader
associated with the input source or
null
if associated with a different source type.public final java.io.InputStream getInputStream()
Reader
associated with the input source or
null
if associated with a different source type.public final XmlEventSource getEventSource()
Reader
associated with the input source or
null
if associated with a different source type.