Package eu.clarin.sru.client
Interface SRURecordDataParser
-
public interface SRURecordDataParserA parser to parse record data and create appropriate Java objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetRecordSchema()The record schema this parser is able to process.SRURecordDataparse(XMLStreamReader reader)Parse a record data into a Java object.
-
-
-
Method Detail
-
getRecordSchema
String getRecordSchema()
The record schema this parser is able to process.- Returns:
- the record schema this parser is able to process
-
parse
SRURecordData parse(XMLStreamReader reader) throws XMLStreamException, SRUClientException
Parse a record data into a Java object.- Parameters:
reader- aXMLStreamReaderto parse the record data- Returns:
- the parsed record
- Throws:
XMLStreamException- an error occurred while parsing the responseSRUClientException- any SRU exception, possibly wrapping another exception- See Also:
SRURecordData
-
-