|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xerces.readers.XMLEntityReader | +--weblogic.apache.xerces.readers.StreamingCharReader
An reader class for applications that need to process input data as it arrives on the stream.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
protected boolean |
fCalledCharPropInit
|
protected java.io.Reader |
fCharacterStream
|
protected CharDataChunk |
fCurrentChunk
|
protected int |
fCurrentIndex
|
protected int |
fFillIndex
|
protected int |
fLength
|
protected int |
fMostRecentChar
|
protected char[] |
fMostRecentData
|
Fields inherited from class weblogic.apache.xerces.readers.XMLEntityReader |
fCarriageReturnCounter,
fCharacterCounter,
fCharDataHandler,
fCurrentOffset,
fEntityHandler,
fErrorReporter,
fInCDSect,
fLinefeedCounter,
fSendCharDataAsCharArray |
Constructor Summary | |
StreamingCharReader(XMLEntityHandler entityHandler,
XMLErrorReporter errorReporter,
boolean sendCharDataAsCharArray,
java.io.Reader reader,
StringPool stringPool)
Constructor |
Method Summary | |
int |
addString(int offset,
int length)
Add a string to the StringPool from the characters scanned using this
reader as described by offset and length . |
int |
addSymbol(int offset,
int length)
Add a symbol to the StringPool from the characters scanned using this
reader as described by offset and length . |
void |
append(XMLEntityHandler.CharBuffer charBuffer,
int offset,
int length)
Append the characters processed by this reader associated with offset and
length to the CharBuffer . |
protected XMLEntityHandler.EntityReader |
changeReaders()
Change readers at end of input. |
protected void |
deferException(int errorCode,
java.lang.Object[] args,
int offset)
Delay reporting an error message. |
boolean |
lookingAtChar(char chr,
boolean skipPastChar)
|
boolean |
lookingAtSpace(boolean skipPastChar)
|
boolean |
lookingAtValidChar(boolean skipPastChar)
|
int |
scanAttValue(char qchar,
boolean asSymbol)
|
int |
scanCharRef(boolean hex)
|
int |
scanContent(QName element)
|
int |
scanEntityValue(int qchar,
boolean createString)
|
boolean |
scanExpectedName(char fastcheck,
StringPool.CharArrayRange expectedName)
|
int |
scanInvalidChar()
|
int |
scanName(char fastcheck)
|
void |
scanQName(char fastcheck,
QName qname)
|
int |
scanStringLiteral()
|
void |
skipPastName(char fastcheck)
|
void |
skipPastNmtoken(char fastcheck)
|
void |
skipPastSpaces()
|
boolean |
skippedString(char[] s)
|
void |
skipToChar(char chr)
|
Methods inherited from class weblogic.apache.xerces.readers.XMLEntityReader |
currentOffset,
getColumnNumber,
getInCDSect,
getLineNumber,
init,
setInCDSect |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.io.Reader fCharacterStream
protected CharDataChunk fCurrentChunk
protected int fCurrentIndex
protected int fFillIndex
protected char[] fMostRecentData
protected int fMostRecentChar
protected int fLength
protected boolean fCalledCharPropInit
Constructor Detail |
public StreamingCharReader(XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, java.io.Reader reader, StringPool stringPool) throws java.lang.Exception
entityHandler
- The entity handler.errorReporter
- The error reporter.sendCharDataAsCharArray
- true if char data should be reported using
char arrays instead of string handles.stringPool
- The string pool.Method Detail |
protected void deferException(int errorCode, java.lang.Object[] args, int offset)
errorCode
- the errorCode to reportargs
- an array of arguments needed to generate a good error messageoffset
- the position in the reader where the error occuredprotected XMLEntityHandler.EntityReader changeReaders() throws java.lang.Exception
public void append(XMLEntityHandler.CharBuffer charBuffer, int offset, int length)
offset
and
length
to the CharBuffer
.
charBuffer
- The CharBuffer
to append the characters to.offset
- The offset within this reader where the copy should start.length
- The length within this reader where the copy should stop.public int addString(int offset, int length)
StringPool
from the characters scanned using this
reader as described by offset
and length
.
offset
- The offset within this reader where the characters start.length
- The length within this reader where the characters end.StringPool
handle for the string.public int addSymbol(int offset, int length)
StringPool
from the characters scanned using this
reader as described by offset
and length
.
offset
- The offset within this reader where the characters start.length
- The length within this reader where the characters end.StringPool
handle for the symbol.public boolean lookingAtChar(char chr, boolean skipPastChar) throws java.lang.Exception
public boolean lookingAtValidChar(boolean skipPastChar) throws java.lang.Exception
public boolean lookingAtSpace(boolean skipPastChar) throws java.lang.Exception
public void skipToChar(char chr) throws java.lang.Exception
public void skipPastSpaces() throws java.lang.Exception
public void skipPastName(char fastcheck) throws java.lang.Exception
public void skipPastNmtoken(char fastcheck) throws java.lang.Exception
public boolean skippedString(char[] s) throws java.lang.Exception
public int scanInvalidChar() throws java.lang.Exception
public int scanCharRef(boolean hex) throws java.lang.Exception
public int scanStringLiteral() throws java.lang.Exception
public int scanAttValue(char qchar, boolean asSymbol) throws java.lang.Exception
public int scanEntityValue(int qchar, boolean createString) throws java.lang.Exception
public int scanName(char fastcheck) throws java.lang.Exception
public boolean scanExpectedName(char fastcheck, StringPool.CharArrayRange expectedName) throws java.lang.Exception
public void scanQName(char fastcheck, QName qname) throws java.lang.Exception
public int scanContent(QName element) throws java.lang.Exception
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |