public class Stax2FileSource extends Stax2ReferentialSource
Stax2ReferentialSource, which refers
to the specific file.| Modifier and Type | Field and Description |
|---|---|
(package private) java.io.File |
_file |
mEncoding, mPublicId, mSystemId| Constructor and Description |
|---|
Stax2FileSource(java.io.File f) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
constructInputStream()
This method creates an
InputStream via which underlying input
source can be accessed. |
java.io.Reader |
constructReader()
This method creates a
Reader via which underlying input
source can be accessed. |
java.io.File |
getFile() |
java.net.URL |
getReference() |
getSystemIdgetEncoding, getPublicId, setEncoding, setPublicId, setSystemIdpublic java.net.URL getReference()
getReference in class Stax2ReferentialSourcepublic 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 Stax2ReferentialSourcejava.io.IOExceptionpublic 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 Stax2ReferentialSourcejava.io.IOExceptionpublic java.io.File getFile()