Class FDSNStationXML
java.lang.Object
edu.sc.seis.seisFile.fdsnws.stationxml.FDSNStationXML
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
static FDSNStationXML
static Channel
findChannelBySID
(Map<Network, List<Station>> networks, FDSNSourceId sid, Instant time) Finds the channel with the given FDSN SourceId that was active at the given time.static URL
static org.slf4j.Logger
static FDSNStationXML
loadStationXML
(File filename) static FDSNStationXML
loadStationXML
(InputStream stream) static FDSNStationXML
loadStationXML
(Reader streamReader) static FDSNStationXML
loadStationXML
(String filename) static void
printSchema
(OutputStream out) void
setCreated
(String created) void
void
setQuerier
(FDSNStationQuerier fdsnStationQuerier) void
setResponse
(org.apache.http.client.methods.CloseableHttpResponse response) void
void
void
setXmlSchemaLocation
(String xmlns)
-
Constructor Details
-
FDSNStationXML
-
-
Method Details
-
getSource
-
setSource
-
getSender
-
setSender
-
getModule
-
setModule
-
getCreated
-
setCreated
-
getNetworks
-
extractAllNetworks
public Map<Network,List<Station>> extractAllNetworks() throws XMLStreamException, StationXMLException -
findChannelBySID
public static Channel findChannelBySID(Map<Network, List<Station>> networks, FDSNSourceId sid, Instant time) Finds the channel with the given FDSN SourceId that was active at the given time. Usually the networks Map comes from extractAllNetworks().- Parameters:
networks
- map of network to list of stations to search.sid
- FDSN SourceId to matchtime
- time to overlap- Returns:
- Channel if found or null if not
-
closeReader
public void closeReader() -
getXmlSchemaLocation
-
setXmlSchemaLocation
-
getReader
-
getModuleUri
-
getSchemaVersion
-
getLogger
public static org.slf4j.Logger getLogger() -
checkSchemaVersion
public boolean checkSchemaVersion() -
setResponse
public void setResponse(org.apache.http.client.methods.CloseableHttpResponse response) -
createEmpty
-
findInternalSchema
-
printSchema
- Throws:
IOException
-
loadStationXML
public static FDSNStationXML loadStationXML(Reader streamReader) throws XMLStreamException, IOException, SeisFileException -
loadStationXML
public static FDSNStationXML loadStationXML(InputStream stream) throws XMLStreamException, IOException, SeisFileException -
loadStationXML
public static FDSNStationXML loadStationXML(String filename) throws XMLStreamException, IOException, SeisFileException -
loadStationXML
public static FDSNStationXML loadStationXML(File filename) throws XMLStreamException, IOException, SeisFileException -
setQuerier
-