Package gov.usgs.earthquake.geoserve
Class RegionsXML
java.lang.Object
gov.usgs.earthquake.geoserve.RegionsXML
Legacy Regions XML formatting for gov.usgs.earthquake.qdm.Regions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOutput ANSS Authoritative Regions in the legacy Regions XML format.static Regions
Parse regions from an XML input stream.static void
Download ANSS Authoritative regions from Geoserve, and print to the screen in Regions XML format.
-
Constructor Details
-
RegionsXML
public RegionsXML()
-
-
Method Details
-
formatXML
Output ANSS Authoritative Regions in the legacy Regions XML format.- Parameters:
regions
- ANSS Authoritative regions- Returns:
- String on regions in an XML format
-
getRegions
Parse regions from an XML input stream.- Parameters:
in
- input stream- Returns:
- Regions
- Throws:
Exception
- if error occurs
-
main
Download ANSS Authoritative regions from Geoserve, and print to the screen in Regions XML format.- Parameters:
args
- console arguments- Throws:
Exception
- if error occurs
-