Package org.codehaus.stax2.io
Class Stax2FileSource
java.lang.Object
org.codehaus.stax2.io.Stax2Source
org.codehaus.stax2.io.Stax2ReferentialSource
org.codehaus.stax2.io.Stax2FileSource
- All Implemented Interfaces:
Source
Simple implementation of
Stax2ReferentialSource, which refers
to the specific file.-
Field Summary
Fields inherited from class org.codehaus.stax2.io.Stax2Source
mEncoding, mPublicId, mSystemId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method creates anInputStreamvia which underlying input source can be accessed.This method creates aReadervia which underlying input source can be accessed.getFile()Methods inherited from class org.codehaus.stax2.io.Stax2ReferentialSource
getSystemIdMethods inherited from class org.codehaus.stax2.io.Stax2Source
getEncoding, getPublicId, setEncoding, setPublicId, setSystemId
-
Constructor Details
-
Stax2FileSource
-
-
Method Details
-
getReference
- Specified by:
getReferencein 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:Stax2SourceThis method creates aReadervia which underlying input source can be accessed. Note that caller is responsible for closing that Reader when it is done reading it.- Specified by:
constructReaderin classStax2ReferentialSource- Throws:
IOException
-
constructInputStream
Description copied from class:Stax2SourceThis method creates anInputStreamvia which underlying input source can be accessed. Note that caller is responsible for closing that InputSource when it is done reading it- Specified by:
constructInputStreamin classStax2ReferentialSource- Throws:
IOException
-
getFile
-