APIdia Launch Partner
Top Description Constructors Methods
com.sun.org.apache.xerces.internal.xinclude

public Class XInclude11TextReader

extends XIncludeTextReader
Class Inheritance
Imports
java.io.IOException, com.sun.org.apache.xerces.internal.util.XML11Char, com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource

This class is used for reading resources requested in <include> elements in XML 1.1 entities, when the parse attribute of the <include> element is "text". Using this class will open the location, detect the encoding, and discard the byte order mark, if applicable.
Author
Michael Glavassevich, IBM
See Also
XIncludeHandler

Constructor Summary

AccessConstructor and Description
public
XInclude11TextReader(XMLInputSource
The XMLInputSource to use.
source
,
XIncludeHandler
The XIncludeHandler to use.
handler
,
int
The size of this text reader's buffer.
bufferSize
)

Construct the XIncludeReader using the XMLInputSource and XIncludeHandler.

Method Summary

Modifier and TypeMethod and Description
protected boolean
isValid(int
The character to check.
ch
)

Overrides com.sun.org.apache.xerces.internal.xinclude.XIncludeTextReader.isValid.

Returns true if the specified character is a valid XML character as per the rules of XML 1.1.

Inherited from com.sun.org.apache.xerces.internal.xinclude.XIncludeTextReader:
closeconsumeBOMgetEncodingNamegetEncodingNamegetReaderparsesetBufferSizesetErrorReportersetInputSource

Constructor Detail

XInclude11TextReaderback to summary
public XInclude11TextReader(XMLInputSource source, XIncludeHandler handler, int bufferSize) throws IOException

Construct the XIncludeReader using the XMLInputSource and XIncludeHandler.

Parameters
source:XMLInputSource

The XMLInputSource to use.

handler:XIncludeHandler

The XIncludeHandler to use.

bufferSize:int

The size of this text reader's buffer.

Method Detail

isValidback to summary
protected boolean isValid(int ch)

Overrides com.sun.org.apache.xerces.internal.xinclude.XIncludeTextReader.isValid.

Returns true if the specified character is a valid XML character as per the rules of XML 1.1.

Parameters
ch:int

The character to check.