Top Description Fields Constructors Methods
org.codehaus.stax2.io

public Class Stax2URLSource

extends Stax2ReferentialSource
Class Inheritance
Imports
java.io.*, java.net.URL

Simple implementation of Stax2ReferentialSource, which refers to the specific file.

Field Summary

Modifier and TypeField and Description
pack-priv final URL

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public InputStream
constructInputStream()

Implements abstract org.codehaus.stax2.io.Stax2ReferentialSource.constructInputStream.

This method creates an InputStream via which underlying input source can be accessed.
public Reader
constructReader()

Implements abstract org.codehaus.stax2.io.Stax2ReferentialSource.constructReader.

This method creates a Reader via which underlying input source can be accessed.
public URL

Returns:

URL that refers to the reference resource, for the purposes of resolving a relative reference from content read from the resource.
getReference
()

Implements abstract org.codehaus.stax2.io.Stax2ReferentialSource.getReference.

Inherited from org.codehaus.stax2.io.Stax2ReferentialSource:
getSystemId

Field Detail

mURLback to summary
pack-priv final URL mURL

Constructor Detail

Stax2URLSourceback to summary
public Stax2URLSource(URL url)

Method Detail

constructInputStreamback to summary
public InputStream constructInputStream() throws IOException

Implements abstract org.codehaus.stax2.io.Stax2ReferentialSource.constructInputStream.

Doc from org.codehaus.stax2.io.Stax2Source.constructInputStream.

This method creates an InputStream via which underlying input source can be accessed. Note that caller is responsible for closing that InputSource when it is done reading it

Annotations
@Override
constructReaderback to summary
public Reader constructReader() throws IOException

Implements abstract org.codehaus.stax2.io.Stax2ReferentialSource.constructReader.

Doc from org.codehaus.stax2.io.Stax2Source.constructReader.

This method creates a Reader via which underlying input source can be accessed. Note that caller is responsible for closing that Reader when it is done reading it.

Annotations
@Override
getReferenceback to summary
public URL getReference()

Implements abstract org.codehaus.stax2.io.Stax2ReferentialSource.getReference.

Returns:URL

URL that refers to the reference resource, for the purposes of resolving a relative reference from content read from the resource.

Annotations
@Override