edu.iris.dmc.service
Class StationService
java.lang.Object
edu.iris.dmc.service.BaseService
edu.iris.dmc.service.StationService
public class StationService
- extends BaseService
Station service is the main class for querying the Station service
Method Summary |
List<edu.iris.dmc.fdsn.station.model.Network> |
fetch(Criteria criteria,
OutputLevel level)
Find stations based on the criteria provided. |
List<edu.iris.dmc.fdsn.station.model.Network> |
fetch(String url)
|
List<edu.iris.dmc.fdsn.station.model.Network> |
load(InputStream inputStream)
Load Networks from inputstream, example local file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StationService
public StationService(String baseUrl,
String version,
String compatabilityVersion,
String userAgent)
load
public List<edu.iris.dmc.fdsn.station.model.Network> load(InputStream inputStream)
throws IOException
- Load Networks from inputstream, example local file
- Parameters:
inputStream
-
- Returns:
- the networks list from the file
- Throws:
IOException
fetch
public List<edu.iris.dmc.fdsn.station.model.Network> fetch(String url)
throws NoDataFoundException,
CriteriaException,
IOException,
ServiceNotSupportedException
- Throws:
NoDataFoundException
CriteriaException
IOException
ServiceNotSupportedException
fetch
public List<edu.iris.dmc.fdsn.station.model.Network> fetch(Criteria criteria,
OutputLevel level)
throws NoDataFoundException,
CriteriaException,
IOException,
ServiceNotSupportedException
- Find stations based on the criteria provided. This will download data
from IRIS station service (http://www.iris.edu/ws/station). The default
level is station
- Parameters:
criteria
- level
-
- Returns:
- List of all stations meeting the criteria provided.
- Throws:
NoDataFoundException
CriteriaException
ServiceNotSupportedException
IOException
Copyright © 2013. All Rights Reserved.