org.apache.xerces.xinclude

Class XInclude11TextReader


public class XInclude11TextReader
extends XIncludeTextReader

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.

Version:
$Id: XInclude11TextReader.java,v 1.1 2003/11/17 04:49:18 mrglavas Exp $

Author:
Michael Glavassevich, IBM

See Also:
XIncludeHandler

Constructor Summary

XInclude11TextReader(org.apache.xerces.xni.parser.XMLInputSource source, XIncludeHandler handler)
Construct the XIncludeReader using the XMLInputSource and XIncludeHandler.

Method Summary

protected boolean
isValid(int ch)
Returns true if the specified character is a valid XML character as per the rules of XML 1.1.

Methods inherited from class org.apache.xerces.xinclude.XIncludeTextReader

close, consumeBOM, getEncodingName, getEncodingName, getReader, isValid, parse, setErrorReporter, setHttpProperties

Constructor Details

XInclude11TextReader

public XInclude11TextReader(org.apache.xerces.xni.parser.XMLInputSource source,
                            XIncludeHandler handler)
            throws IOException
Construct the XIncludeReader using the XMLInputSource and XIncludeHandler.

Parameters:
source - The XMLInputSource to use.
handler - The XIncludeHandler to use.

Method Details

isValid

protected boolean isValid(int ch)
Returns true if the specified character is a valid XML character as per the rules of XML 1.1.
Overrides:
isValid in interface XIncludeTextReader

Parameters:
ch - The character to check.


Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.