|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
scanner.InvalidCharacterEvent
This event is thrown when an unexpected character is encountered.
Constructor Summary | |
InvalidCharacterEvent(java.lang.Object source,
char character,
CharStreamPosition position)
Creates a new event with the following parameters. |
Method Summary | |
char |
getCharacter()
Returns the invalid character. |
int |
getLength()
Returns the length of this positionable object. |
CharStreamPosition |
getPosition()
Returns the position where the invalid character has been detected. |
java.lang.String |
toString()
|
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InvalidCharacterEvent(java.lang.Object source, char character, CharStreamPosition position)
source
- The source that has detected the invalid character.character
- The invalid character.position
- The position where the invalid character has been detected.Method Detail |
public char getCharacter()
public int getLength()
PositionableInCharStream
getLength
in interface PositionableInCharStream
public CharStreamPosition getPosition()
getPosition
in interface PositionableInCharStream
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |