Package eu.clarin.sru.client.fcs
Class LegacyClarinFCSRecordDataParser
- java.lang.Object
- 
- eu.clarin.sru.client.fcs.LegacyClarinFCSRecordDataParser
 
- 
- All Implemented Interfaces:
- SRURecordDataParser
 
 @Deprecated public class LegacyClarinFCSRecordDataParser extends Object Deprecated.Use only to talk to legacy clients. Endpoints should upgrade to recent CLARIN-FCS specification.A record data parse to parse legacy records.
- 
- 
Field SummaryFields Modifier and Type Field Description protected static org.slf4j.Loggerloggerprotected List<DataViewParser>parsers
 - 
Constructor SummaryConstructors Constructor Description LegacyClarinFCSRecordDataParser(List<DataViewParser> parsers, boolean fullLegacyCompatMode)Deprecated.Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetRecordSchema()Deprecated.SRURecordDataparse(XMLStreamReader reader)Deprecated.protected SRURecordDataparse(XMLStreamReader reader, String ns, boolean fullLegacyCompatMode)
 
- 
- 
- 
Field Detail- 
loggerprotected static final org.slf4j.Logger logger 
 - 
parsersprotected final List<DataViewParser> parsers 
 
- 
 - 
Constructor Detail- 
LegacyClarinFCSRecordDataParserpublic LegacyClarinFCSRecordDataParser(List<DataViewParser> parsers, boolean fullLegacyCompatMode) Deprecated.Constructor.- Parameters:
- parsers- the list of data view parsers to be used by this record data parser. This list should contain one- DataViewParserGenericDOMor- DataViewParserGenericStringinstance.
- fullLegacyCompatMode- enable full legacy CLARIN-FCS compat mode
- Throws:
- NullPointerException- if parsers is- null
- IllegalArgumentException- if parsers is empty or contains duplicate entries
 
 
- 
 - 
Method Detail- 
getRecordSchemapublic String getRecordSchema() Deprecated.
 - 
parsepublic SRURecordData parse(XMLStreamReader reader) throws XMLStreamException, SRUClientException Deprecated.- Throws:
- XMLStreamException
- SRUClientException
 
 - 
parseprotected SRURecordData parse(XMLStreamReader reader, String ns, boolean fullLegacyCompatMode) throws XMLStreamException, SRUClientException - Throws:
- XMLStreamException
- SRUClientException
 
 
- 
 
-