Package eu.clarin.sru.server.fcs.utils
Class SimpleEndpointDescriptionParser
- java.lang.Object
-
- eu.clarin.sru.server.fcs.utils.SimpleEndpointDescriptionParser
-
public class SimpleEndpointDescriptionParser extends Object
A parser, that parses an XML file and produces a endpoint description with static list of resource info records. The XML file has the same format as the result format defined for endpoint description of the CLARIN-FCS specification. Theparse(URL)
returns aSimpleEndpointDescription
instance.- See Also:
EndpointDescription
,SimpleEndpointDescription
-
-
Constructor Summary
Constructors Constructor Description SimpleEndpointDescriptionParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EndpointDescription
parse(URL url)
Parse an XML file and return a static list of resource info records.
-
-
-
Method Detail
-
parse
public static EndpointDescription parse(URL url) throws SRUConfigException
Parse an XML file and return a static list of resource info records.- Parameters:
url
- the URI pointing to the file to be parsed- Returns:
- an
EndpointDescription
instance - Throws:
SRUConfigException
- if an error occurred
-
-