Package edu.sc.seis.sod.source.event
Class CSVEventSource
java.lang.Object
edu.sc.seis.sod.source.AbstractSource
edu.sc.seis.sod.source.event.SimpleEventSource
edu.sc.seis.sod.source.event.CSVEventSource
- All Implemented Interfaces:
EventSource
,Source
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class edu.sc.seis.sod.source.event.SimpleEventSource
hasNextBeenCalled
Fields inherited from class edu.sc.seis.sod.source.AbstractSource
name, NAME_ELEMENT, RETRIES_ELEMENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
edu.sc.seis.fissuresUtil.cache.CacheEvent[]
static edu.sc.seis.fissuresUtil.cache.CacheEvent[]
getEventsFromCSVFile
(String filename) static edu.sc.seis.fissuresUtil.cache.CacheEvent[]
getEventsFromReader
(Reader reader) protected void
initFromFile
(String filename) toString()
Methods inherited from class edu.sc.seis.sod.source.event.SimpleEventSource
extractBeginTime, getEventTimeRange, getWaitBeforeNext, hasNext, next
Methods inherited from class edu.sc.seis.sod.source.AbstractSource
appendToName, getFissuresNamingService, getName, getRetries, getRetryStrategy, setRetryStrategy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface edu.sc.seis.sod.source.Source
appendToName, getName, getRetries
-
Field Details
-
TIME
- See Also:
-
LONGITUDE
- See Also:
-
LATITUDE
- See Also:
-
DEPTH
- See Also:
-
MAGNITUDE
- See Also:
-
CATALOG
- See Also:
-
CONTRIBUTOR
- See Also:
-
NAME
- See Also:
-
FE_SEIS_REGION
- See Also:
-
FE_GEO_REGION
- See Also:
-
FE_REGION
- See Also:
-
FE_REGION_TYPE
- See Also:
-
DEPTH_UNITS
- See Also:
-
MAGNITUDE_TYPE
- See Also:
-
MAGNITUDE_CONTRIBUTOR
- See Also:
-
UNKNOWN
- See Also:
-
-
Constructor Details
-
CSVEventSource
- Throws:
ConfigurationException
-
CSVEventSource
- Throws:
ConfigurationException
-
-
Method Details
-
initFromFile
- Throws:
ConfigurationException
-
getDescription
-
getEvents
public edu.sc.seis.fissuresUtil.cache.CacheEvent[] getEvents()- Specified by:
getEvents
in classSimpleEventSource
-
getEventsFromCSVFile
public static edu.sc.seis.fissuresUtil.cache.CacheEvent[] getEventsFromCSVFile(String filename) throws FileNotFoundException, IOException, ConfigurationException -
getEventsFromReader
public static edu.sc.seis.fissuresUtil.cache.CacheEvent[] getEventsFromReader(Reader reader) throws IOException, FileNotFoundException, ConfigurationException -
concatenateValidFields
-
toString
-