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 InputStream |
constructInputStream()
This method creates an
InputStream via which underlying input
source can be accessed. |
abstract Reader |
constructReader()
This method creates a
Reader via which underlying input
source can be accessed. |
abstract URL |
getReference() |
String |
getSystemId()
Since we can determine a system id from the base URL
|
getEncoding, getPublicId, setEncoding, setPublicId, setSystemIdpublic abstract URL getReference()
getReference in class Stax2Sourcepublic abstract Reader constructReader() throws 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 Stax2SourceIOExceptionpublic abstract InputStream constructInputStream() throws 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 Stax2SourceIOExceptionpublic String getSystemId()
getSystemId in interface SourcegetSystemId in class Stax2SourceCopyright © 2015 fasterxml.com. All Rights Reserved.