|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
scanner.InvalidCharacterEvent
public class 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 PositionableInCharStreampublic CharStreamPosition getPosition()
getPosition in interface PositionableInCharStreampublic java.lang.String toString()
toString in class java.util.EventObject
|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||