public abstract class Stax2ReferentialSource extends Stax2Source
Stax2Source
s
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
,
Stax2URLSource
mEncoding, 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, setSystemId
public abstract URL getReference()
getReference
in class Stax2Source
public abstract Reader constructReader() throws IOException
Stax2Source
Reader
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 Stax2Source
IOException
public abstract InputStream constructInputStream() throws IOException
Stax2Source
InputStream
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 Stax2Source
IOException
public String getSystemId()
getSystemId
in interface Source
getSystemId
in class Stax2Source
Copyright © 2015 fasterxml.com. All Rights Reserved.