public abstract class Stax2ReferentialSource extends Stax2Source
Stax2Sources
that refer to a resource in such a way, that an efficient
InputStream or Reader can be constructed.
Additionally, referenced sources also provide the base URI that allows
for resolving relative references from within content read from
such resources. Typical examples of references are
URL and File: both for which
a default implementations exist in this packageStax2FileSource,
Stax2URLSourcemEncoding, mPublicId, mSystemId| Modifier | Constructor and Description |
|---|---|
protected |
Stax2ReferentialSource() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.io.InputStream |
constructInputStream()
This method creates an
InputStream via which underlying input
source can be accessed. |
abstract java.io.Reader |
constructReader()
This method creates a
Reader via which underlying input
source can be accessed. |
abstract java.net.URL |
getReference() |
java.lang.String |
getSystemId()
Since we can determine a system id from the base URL
|
getEncoding, getPublicId, setEncoding, setPublicId, setSystemIdpublic abstract java.net.URL getReference()
getReference in class Stax2Sourcepublic abstract java.io.Reader constructReader()
throws java.io.IOException
Stax2SourceReader via which underlying input
source can be accessed. Note that caller is responsible for
closing that Reader when it is done reading it.constructReader in class Stax2Sourcejava.io.IOExceptionpublic abstract java.io.InputStream constructInputStream()
throws java.io.IOException
Stax2SourceInputStream via which underlying input
source can be accessed. Note that caller is responsible for
closing that InputSource when it is done reading itconstructInputStream in class Stax2Sourcejava.io.IOExceptionpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.SourcegetSystemId in class Stax2Source