Package eu.clarin.sru.client
Interface SRUExtraResponseDataParser
-
public interface SRUExtraResponseDataParser
A 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 SRUExtraResponseData
parse(XMLStreamReader reader)
Parse the extra response data into a Java object.boolean
supports(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:
true
if the element can be handled by this parser;false
otherwise
-
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
- aXMLStreamReader
to 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
-
-