edu.sc.seis.sod.source.event
Class CSVEventSource
java.lang.Object
edu.sc.seis.sod.source.event.SimpleEventSource
edu.sc.seis.sod.source.event.CSVEventSource
- All Implemented Interfaces:
- SodElement, EventSource
public class CSVEventSource
- extends SimpleEventSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TIME
public static final java.lang.String TIME
- See Also:
- Constant Field Values
LONGITUDE
public static final java.lang.String LONGITUDE
- See Also:
- Constant Field Values
LATITUDE
public static final java.lang.String LATITUDE
- See Also:
- Constant Field Values
DEPTH
public static final java.lang.String DEPTH
- See Also:
- Constant Field Values
MAGNITUDE
public static final java.lang.String MAGNITUDE
- See Also:
- Constant Field Values
CATALOG
public static final java.lang.String CATALOG
- See Also:
- Constant Field Values
CONTRIBUTOR
public static final java.lang.String CONTRIBUTOR
- See Also:
- Constant Field Values
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
FE_SEIS_REGION
public static final java.lang.String FE_SEIS_REGION
- See Also:
- Constant Field Values
FE_GEO_REGION
public static final java.lang.String FE_GEO_REGION
- See Also:
- Constant Field Values
FE_REGION
public static final java.lang.String FE_REGION
- See Also:
- Constant Field Values
FE_REGION_TYPE
public static final java.lang.String FE_REGION_TYPE
- See Also:
- Constant Field Values
DEPTH_UNITS
public static final java.lang.String DEPTH_UNITS
- See Also:
- Constant Field Values
MAGNITUDE_TYPE
public static final java.lang.String MAGNITUDE_TYPE
- See Also:
- Constant Field Values
MAGNITUDE_CONTRIBUTOR
public static final java.lang.String MAGNITUDE_CONTRIBUTOR
- See Also:
- Constant Field Values
UNKNOWN
public static final java.lang.String UNKNOWN
- See Also:
- Constant Field Values
CSVEventSource
public CSVEventSource(org.w3c.dom.Element config)
throws ConfigurationException
- Throws:
ConfigurationException
CSVEventSource
public CSVEventSource(java.lang.String filename)
throws ConfigurationException
- Throws:
ConfigurationException
initFromFile
protected void initFromFile(java.lang.String filename)
throws ConfigurationException
- Throws:
ConfigurationException
getDescription
public java.lang.String getDescription()
getEvents
public CacheEvent[] getEvents()
- Specified by:
getEvents
in class SimpleEventSource
getEventsFromCSVFile
public static CacheEvent[] getEventsFromCSVFile(java.lang.String filename)
throws java.io.FileNotFoundException,
java.io.IOException,
ConfigurationException
- Throws:
java.io.FileNotFoundException
java.io.IOException
ConfigurationException
getEventsFromReader
public static CacheEvent[] getEventsFromReader(java.io.Reader reader)
throws java.io.IOException,
java.io.FileNotFoundException,
ConfigurationException
- Throws:
java.io.IOException
java.io.FileNotFoundException
ConfigurationException
concatenateValidFields
public static java.lang.String concatenateValidFields()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object