|
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.impl.XMLEntityScanner | +--weblogic.apache.xerces.impl.XMLEntityManager.EntityScanner | +--weblogic.apache.xerces.impl.XML11EntityManager.XML11EntityScanner
Implements the entity scanner methods.
Constructor Summary | |
XML11EntityManager.XML11EntityScanner()
Default constructor. |
Method Summary | |
int |
peekChar()
Returns the next character on the input. |
int |
scanChar()
Returns the next character on the input. |
int |
scanContent(XMLString content)
Scans a range of parsed character data, setting the fields of the XMLString structure, appropriately. |
boolean |
scanData(java.lang.String delimiter,
XMLString data)
Scans a range of character data up to the specicied delimiter, setting the fields of the XMLString structure, appropriately. |
int |
scanLiteral(int quote,
XMLString content)
Scans a range of attribute value data, setting the fields of the XMLString structure, appropriately. |
boolean |
skipChar(int c)
Skips a character appearing immediately on the input. |
boolean |
skipSpaces()
Skips space characters appearing immediately on the input. |
boolean |
skipString(java.lang.String s)
Skips the specified string appearing immediately on the input. |
Methods inherited from class weblogic.apache.xerces.impl.XMLEntityManager.EntityScanner |
getBaseSystemId,
getColumnNumber,
getExpandedSystemId,
getLineNumber,
getLiteralSystemId,
getPublicId,
isExternal,
scanName,
scanNmtoken,
scanQName,
setEncoding |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public XML11EntityManager.XML11EntityScanner()
Method Detail |
public int peekChar() throws java.io.IOException
Note: The character is not consumed.
public int scanChar() throws java.io.IOException
Note: The character is consumed.
public int scanContent(XMLString content) throws java.io.IOException
Note: The characters are consumed.
Note: This method does not guarantee to return the longest run of parsed character data. This method may return before markup due to reaching the end of the input buffer or any other reason.
Note: The fields contained in the XMLString structure are not guaranteed to remain valid upon subsequent calls to the entity scanner. Therefore, the caller is responsible for immediately using the returned character data or making a copy of the character data.
content
- The content structure to fill.public int scanLiteral(int quote, XMLString content) throws java.io.IOException
Note: The characters are consumed.
Note: This method does not guarantee to return the longest run of attribute value data. This method may return before the quote character due to reaching the end of the input buffer or any other reason.
Note: The fields contained in the XMLString structure are not guaranteed to remain valid upon subsequent calls to the entity scanner. Therefore, the caller is responsible for immediately using the returned character data or making a copy of the character data.
quote
- The quote character that signifies the end of the
attribute value data.content
- The content structure to fill.public boolean scanData(java.lang.String delimiter, XMLString data) throws java.io.IOException
Note: The characters are consumed.
Note: This assumes that the internal buffer is at least the same size, or bigger, than the length of the delimiter and that the delimiter contains at least one character.
Note: This method does not guarantee to return the longest run of character data. This method may return before the delimiter due to reaching the end of the input buffer or any other reason.
Note: The fields contained in the XMLString structure are not guaranteed to remain valid upon subsequent calls to the entity scanner. Therefore, the caller is responsible for immediately using the returned character data or making a copy of the character data.
delimiter
- The string that signifies the end of the character
data to be scanned.data
- The data structure to fill.public boolean skipChar(int c) throws java.io.IOException
Note: The character is consumed only if it matches the specified character.
c
- The character to skip.public boolean skipSpaces() throws java.io.IOException
Note: The characters are consumed only if they are space characters.
XMLChar.isSpace(int)
public boolean skipString(java.lang.String s) throws java.io.IOException
Note: The characters are consumed only if they are space characters.
s
- The string to skip.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |