Class XInclude11TextReader
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.xinclude.XIncludeTextReader
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.xinclude.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$
- Author:
- Michael Glavassevich, IBM
- See Also:
XIncludeHandler
-
-
Constructor Summary
Constructors Constructor Description XInclude11TextReader(XMLInputSource source, XIncludeHandler handler, int bufferSize)
Construct the XIncludeReader using the XMLInputSource and XIncludeHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.smooks.engine.delivery.sax.ng.org.apache.xerces.xinclude.XIncludeTextReader
close, consumeBOM, getEncodingName, getEncodingName, getReader, parse, setBufferSize, setErrorReporter, setInputSource
-
-
-
-
Constructor Detail
-
XInclude11TextReader
public XInclude11TextReader(XMLInputSource source, XIncludeHandler handler, int bufferSize) throws IOException
Construct the XIncludeReader using the XMLInputSource and XIncludeHandler.- Parameters:
source
- The XMLInputSource to use.handler
- The XIncludeHandler to use.bufferSize
- The size of this text reader's buffer.- Throws:
IOException
-
-
Method Detail
-
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 classXIncludeTextReader
- Parameters:
ch
- The character to check.
-
-