Class Overview
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.
Summary
Protected Methods |
boolean
|
isValid(int ch)
Returns true if the specified character is a valid XML character
as per the rules of XML 1.1.
|
[Expand]
Inherited Methods |
From class
org.apache.xerces.xinclude.XIncludeTextReader
void
|
close()
Closes the stream.
|
String
|
consumeBOM(InputStream stream, String encoding)
Removes the byte order mark from the stream, if
it exists and returns the encoding name.
|
String
|
getEncodingName(InputStream stream)
XMLEntityManager cares about endian-ness, since it creates its own optimized
readers.
|
String
|
getEncodingName(byte[] b4)
REVISIT: This code is taken from org.apache.xerces.impl.XMLEntityManager.
|
Reader
|
getReader(XMLInputSource source)
Return the Reader for given XMLInputSource.
|
boolean
|
isValid(int ch)
Returns true if the specified character is a valid XML character
as per the rules of XML 1.0.
|
void
|
parse()
Read the input stream as text, and pass the text on to the XIncludeHandler
using calls to characters().
|
void
|
setBufferSize(int bufferSize)
Sets the buffer size property for the reader which decides the chunk sizes that are parsed
by the reader at a time and passed to the handler
|
void
|
setErrorReporter(XMLErrorReporter errorReporter)
Sets the XMLErrorReporter used for reporting errors while
reading the text include.
|
void
|
setInputSource(XMLInputSource source)
Sets the input source on this text reader.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
XInclude11TextReader
(XMLInputSource source, XIncludeHandler handler, int bufferSize)
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.
|
Protected Methods
protected
boolean
isValid
(int ch)
Returns true if the specified character is a valid XML character
as per the rules of XML 1.1.
Parameters
ch
| The character to check.
|