public class Parser extends Object
| Constructor and Description |
|---|
Parser()
Creates a Parser for dealing with WMS XML.
|
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
boundingBoxFromNode(Node n)
Creates a new BoundingBox object based on the DOM Node given.
|
Capabilities |
parseCapabilities(WMService service,
InputStream inStream)
Parses the WMT_MS_Capabilities XML from the given InputStream into
a Capabilities object.
|
MapLayer |
wmsLayerFromNode(Node layerNode)
Traverses the DOM tree underneath the specified Node and generates
a corresponding WMSLayer object tree.
|
public Capabilities parseCapabilities(WMService service, InputStream inStream) throws IOException
service - the WMService from which this MapDescriptor is derivedinStream - the inputStream containing the WMT_MS_Capabilities XML to parseIOExceptionpublic MapLayer wmsLayerFromNode(Node layerNode)
layerNode - a DOM Node which is a public BoundingBox boundingBoxFromNode(Node n) throws Exception
n - the DOM Node to create the Bounding box from, must be either a
LatLonBoundingBox element or a BoundingBox elementExceptionCopyright © 2015. All rights reserved.