|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.apache.xerces.impl.XMLEntityScanner
weblogic.apache.xerces.impl.XMLEntityManager.EntityScanner
weblogic.apache.xerces.impl.XML11EntityManager.XML11EntityScanner
protected class 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(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(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 IOException
Note: The character is not consumed.
peekChar
in class XMLEntityManager.EntityScanner
IOException
- Thrown if i/o error occurs.
EOFException
- Thrown on end of file.public int scanChar() throws IOException
Note: The character is consumed.
scanChar
in class XMLEntityManager.EntityScanner
IOException
- Thrown if i/o error occurs.
EOFException
- Thrown on end of file.public int scanContent(XMLString content) throws 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.
scanContent
in class XMLEntityManager.EntityScanner
content
- The content structure to fill.
IOException
- Thrown if i/o error occurs.
EOFException
- Thrown on end of file.public int scanLiteral(int quote, XMLString content) throws 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.
scanLiteral
in class XMLEntityManager.EntityScanner
quote
- The quote character that signifies the end of the
attribute value data.content
- The content structure to fill.
IOException
- Thrown if i/o error occurs.
EOFException
- Thrown on end of file.public boolean scanData(String delimiter, XMLString data) throws 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.
scanData
in class XMLEntityManager.EntityScanner
delimiter
- The string that signifies the end of the character
data to be scanned.data
- The data structure to fill.
IOException
- Thrown if i/o error occurs.
EOFException
- Thrown on end of file.public boolean skipChar(int c) throws IOException
Note: The character is consumed only if it matches the specified character.
skipChar
in class XMLEntityManager.EntityScanner
c
- The character to skip.
IOException
- Thrown if i/o error occurs.
EOFException
- Thrown on end of file.public boolean skipSpaces() throws IOException
Note: The characters are consumed only if they are space characters.
skipSpaces
in class XMLEntityManager.EntityScanner
IOException
- Thrown if i/o error occurs.
EOFException
- Thrown on end of file.XMLChar.isSpace(int)
public boolean skipString(String s) throws IOException
Note: The characters are consumed only if they are space characters.
skipString
in class XMLEntityManager.EntityScanner
s
- The string to skip.
IOException
- Thrown if i/o error occurs.
EOFException
- Thrown on end of file.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |