- Timestamp:
- 08/14/12 17:22:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRURecordDataParser.java
r1975 r2088 1 /** 2 * This software is copyright (c) 2011 by 3 * - Institut fuer Deutsche Sprache (http://www.ids-mannheim.de) 4 * This is free software. You can redistribute it 5 * and/or modify it under the terms described in 6 * the GNU General Public License v3 of which you 7 * should have received a copy. Otherwise you can download 8 * it from 9 * 10 * http://www.gnu.org/licenses/gpl-3.0.txt 11 * 12 * @copyright Institut fuer Deutsche Sprache (http://www.ids-mannheim.de) 13 * 14 * @license http://www.gnu.org/licenses/gpl-3.0.txt 15 * GNU General Public License v3 16 */ 1 17 package eu.clarin.sru.client; 2 18 … … 4 20 import javax.xml.stream.XMLStreamReader; 5 21 22 23 /** 24 * A parser to parse record data and create appropriate Java objects. 25 * 26 */ 6 27 public interface SRURecordDataParser { 7 28 29 /** 30 * The record schema this parser is able to process. 31 * 32 * @return the record schema this parser is able to process 33 */ 8 34 public String getRecordSchema(); 9 35 36 37 /** 38 * Parse a record data into a Java object. 39 * 40 * @param reader 41 * a {@link XMLStreamReader} to parse the record data 42 * @return the parsed record 43 * @throws XMLStreamException 44 * an error occurred while parsing the response 45 * @throws SRUClientException 46 * any SRU exception, possibly wrapping another exception 47 * @see SRURecordData 48 */ 10 49 public SRURecordData parse(XMLStreamReader reader) 11 50 throws XMLStreamException, SRUClientException;
Note: See TracChangeset
for help on using the changeset viewer.