org.lobobrowser.html.parser

Class InputSourceImpl


public class InputSourceImpl
extends InputSource

The InputSourceImpl class implements the InputSource interface.
Author:
J. H. S.

Constructor Summary

InputSourceImpl()
Constructs an InputSourceImpl.
InputSourceImpl(InputStream byteStream)
Deprecated. Use constructor with uri parameter.
InputSourceImpl(InputStream byteStream, String uri, String charset)
Constructs an InputSourceImpl.
InputSourceImpl(Reader characterStream)
Deprecated. Use constructor with uri parameter.
InputSourceImpl(Reader characterStream, String uri)
Constructs an InputSourceImpl.
InputSourceImpl(String systemId)
Constructs an InputSourceImpl.

Constructor Details

InputSourceImpl

public InputSourceImpl()
Constructs an InputSourceImpl.

InputSourceImpl

public InputSourceImpl(InputStream byteStream)

Deprecated. Use constructor with uri parameter.

Constructs an InputSourceImpl.
Parameters:
byteStream - The input stream where content can be read.

InputSourceImpl

public InputSourceImpl(InputStream byteStream,
                       String uri,
                       String charset)
Constructs an InputSourceImpl.
Parameters:
byteStream - The input stream where content can be read.
uri - The URI that identifies the content.
charset - The character set of the input stream.

InputSourceImpl

public InputSourceImpl(Reader characterStream)

Deprecated. Use constructor with uri parameter.

Constructs an InputSourceImpl.
Parameters:
characterStream - The Reader where characters can be read.

InputSourceImpl

public InputSourceImpl(Reader characterStream,
                       String uri)
Constructs an InputSourceImpl.
Parameters:
characterStream - The Reader where characters can be read.
uri - The URI of the document.

InputSourceImpl

public InputSourceImpl(String systemId)
Constructs an InputSourceImpl. Note that the parameter does not represent a string to be parsed. To parse a string, use a StringReader.
Parameters:
systemId - The system ID of the input source.