Package eu.clarin.sru.client
Interface SRUExtraResponseDataParser
-
public interface SRUExtraResponseDataParserA parser to parse extra response data in a SRU response create appropriate Java objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SRUExtraResponseDataparse(XMLStreamReader reader)Parse the extra response data into a Java object.booleansupports(QName name)Check, if the current element can be handled by this parser.
-
-
-
Method Detail
-
supports
boolean supports(QName name)
Check, if the current element can be handled by this parser.- Parameters:
name- the name of the element to be examined- Returns:
trueif the element can be handled by this parser;falseotherwise
-
parse
SRUExtraResponseData parse(XMLStreamReader reader) throws XMLStreamException, SRUClientException
Parse the extra response data into a Java object. After parsing, the supplied reader should be positioned after the end element to the corresponding start element.- Parameters:
reader- aXMLStreamReaderto parse the extra response data- Returns:
- the parsed extra response data
- Throws:
XMLStreamException- an error occurred while parsingSRUClientException- any SRU exception, possibly wrapping another exception- See Also:
SRUExtraResponseData
-
-