jasext.flatfileserver
Class FlatFileEventSource
java.lang.Object
|
+--jasext.flatfileserver.FlatFileEventSource
- All Implemented Interfaces:
- AnnotatedEventSource, EventSource, TreeObjectSource
- public class FlatFileEventSource
- extends java.lang.Object
- implements AnnotatedEventSource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_STRING_DELIMITER
public static final int NO_STRING_DELIMITER
WHITESPACE_DELIMITED
public static final int WHITESPACE_DELIMITED
FlatFileEventSource
public FlatFileEventSource(java.lang.String s)
throws jasext.flatfileserver.FlatFileException
FlatFileEventSource
public FlatFileEventSource()
getEventDataClass
public java.lang.Class getEventDataClass()
- Specified by:
getEventDataClass in interface EventSource
close
public void close()
- Specified by:
close in interface EventSource
init
public void init()
throws jasext.flatfileserver.FlatFileException
getDateTimeFormat
public java.lang.String getDateTimeFormat()
setDateTimeFormat
public void setDateTimeFormat(java.lang.String s)
getTimeFormat
public java.lang.String getTimeFormat()
setTimeFormat
public void setTimeFormat(java.lang.String s)
getDateFormat
public java.lang.String getDateFormat()
setDateFormat
public void setDateFormat(java.lang.String s)
setDelim
public void setDelim(int c)
setQuoteChar
public void setQuoteChar(int c)
setFileName
public void setFileName(java.lang.String s)
setHasHeaders
public void setHasHeaders(boolean b)
setFirstLineHasTitle
public void setFirstLineHasTitle(boolean b)
setGZIP
public void setGZIP(boolean b)
getItems
public TreeItem[] getItems()
- Specified by:
getItems in interface AnnotatedEventSource
getItem
public java.lang.Object getItem(TreeItem i)
- Specified by:
getItem in interface AnnotatedEventSource
getTotalNumberOfEvents
public int getTotalNumberOfEvents()
- Specified by:
getTotalNumberOfEvents in interface EventSource
beforeFirstEvent
public void beforeFirstEvent()
- Specified by:
beforeFirstEvent in interface EventSource
afterLastEvent
public void afterLastEvent()
- Specified by:
afterLastEvent in interface EventSource
getNextEvent
public EventData getNextEvent()
throws EndOfDataException
- Specified by:
getNextEvent in interface EventSource
getName
public java.lang.String getName()
- Specified by:
getName in interface EventSource