Package eu.clarin.sru.client
Interface SRURecordDataParser
-
public interface SRURecordDataParser
A parser to parse record data and create appropriate Java objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getRecordSchema()
The record schema this parser is able to process.SRURecordData
parse(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
- aXMLStreamReader
to 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
-
-