Package org.codehaus.stax2.io
Class Stax2URLSource
java.lang.Object
org.codehaus.stax2.io.Stax2Source
org.codehaus.stax2.io.Stax2ReferentialSource
org.codehaus.stax2.io.Stax2URLSource
- All Implemented Interfaces:
Source
Simple implementation of
Stax2ReferentialSource
, which refers
to the specific file.-
Field Summary
FieldsFields inherited from class org.codehaus.stax2.io.Stax2Source
mEncoding, mPublicId, mSystemId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method creates anInputStream
via which underlying input source can be accessed.This method creates aReader
via which underlying input source can be accessed.Methods inherited from class org.codehaus.stax2.io.Stax2ReferentialSource
getSystemId
Methods inherited from class org.codehaus.stax2.io.Stax2Source
getEncoding, getPublicId, setEncoding, setPublicId, setSystemId
-
Field Details
-
mURL
-
-
Constructor Details
-
Stax2URLSource
-
-
Method Details
-
getReference
- Specified by:
getReference
in classStax2ReferentialSource
- Returns:
- URL that refers to the reference resource, for the purposes of resolving a relative reference from content read from the resource.
-
constructReader
Description copied from class:Stax2Source
This method creates aReader
via which underlying input source can be accessed. Note that caller is responsible for closing that Reader when it is done reading it.- Specified by:
constructReader
in classStax2ReferentialSource
- Throws:
IOException
-
constructInputStream
Description copied from class:Stax2Source
This method creates anInputStream
via which underlying input source can be accessed. Note that caller is responsible for closing that InputSource when it is done reading it- Specified by:
constructInputStream
in classStax2ReferentialSource
- Throws:
IOException
-