JIDE 3.5.15

com.jidesoft.csv
Class CsvParseEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jidesoft.csv.CsvParseEvent
All Implemented Interfaces:
Serializable

public class CsvParseEvent
extends EventObject

An event generated when a token or a line is recognised in the input stream or file.

This class now supports storing of the line of tokens with the setTokens() method.

Author:
Simon White (swhite@catalysoft.com)
See Also:
Serialized Form

Nested Class Summary
static class CsvParseEvent.EventType
          Indicates whether the event signifies a token or a line
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CsvParseEvent(Object source, CsvParseEvent.EventType type)
           
CsvParseEvent(Object source, CsvParseEvent.EventType type, String token)
           
CsvParseEvent(Object source, List<String> tokens)
           
CsvParseEvent(Object source, String token)
           
 
Method Summary
 String getToken()
           
 List<String> getTokens()
           
 CsvParseEvent.EventType getType()
           
 void setToken(String token)
           
 void setTokens(List<String> tokens)
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CsvParseEvent

public CsvParseEvent(Object source,
                     CsvParseEvent.EventType type)

CsvParseEvent

public CsvParseEvent(Object source,
                     CsvParseEvent.EventType type,
                     String token)

CsvParseEvent

public CsvParseEvent(Object source,
                     String token)

CsvParseEvent

public CsvParseEvent(Object source,
                     List<String> tokens)
Method Detail

setToken

public void setToken(String token)

getToken

public String getToken()

setTokens

public void setTokens(List<String> tokens)

getTokens

public List<String> getTokens()

getType

public CsvParseEvent.EventType getType()

toString

public String toString()
Overrides:
toString in class EventObject

JIDE 3.5.15