scanner
Class ScannerAdapter

java.lang.Object
  extended byscanner.ScannerAdapter
All Implemented Interfaces:
java.util.EventListener, ScannerListenerInterface

public class ScannerAdapter
extends java.lang.Object
implements ScannerListenerInterface, java.util.EventListener

An empty default implementation of for scanner listener.


Constructor Summary
ScannerAdapter()
           
 
Method Summary
 void invalidCharacter(InvalidCharacterEvent evt)
          Invoked when an invalid character has been found.
 void lineProcessed(java.lang.String line)
          Invoked when a line has been processed.
 void tokenGenerated(TokenEvent event)
          Invoked when a new token has been generated.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannerAdapter

public ScannerAdapter()
Method Detail

tokenGenerated

public void tokenGenerated(TokenEvent event)
Invoked when a new token has been generated.

Specified by:
tokenGenerated in interface ScannerListenerInterface
Parameters:
event - Event containing all information about the token generated.

invalidCharacter

public void invalidCharacter(InvalidCharacterEvent evt)
Invoked when an invalid character has been found.

Specified by:
invalidCharacter in interface ScannerListenerInterface
Parameters:
evt - Event containing all information about the invalid character found.

lineProcessed

public void lineProcessed(java.lang.String line)
Invoked when a line has been processed.

Specified by:
lineProcessed in interface ScannerListenerInterface
Parameters:
line - The line that has just been processed.