Top Description Constructors Methods
org.apache.xerces.xinclude

public Class XInclude11TextReader

extends XIncludeTextReader
Class Inheritance
Imports
java.io.IOException, org.apache.xerces.util.XML11Char, org.apache.xerces.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
Version
$Id: XInclude11TextReader.java 447243 2006-09-18 05:15:27Z mrglavas $
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 org.apache.xerces.xinclude.XIncludeTextReader.isValid.

Returns true if the specified character is a valid XML character as per the rules of XML 1.1.
Inherited from org.apache.xerces.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 org.apache.xerces.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.