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 Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
protected List<DataViewParser>
parsers
-
Constructor Summary
Constructors Constructor Description LegacyClarinFCSRecordDataParser(List<DataViewParser> parsers, boolean fullLegacyCompatMode)
Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getRecordSchema()
Deprecated.SRURecordData
parse(XMLStreamReader reader)
Deprecated.protected SRURecordData
parse(XMLStreamReader reader, String ns, boolean fullLegacyCompatMode)
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
parsers
protected final List<DataViewParser> parsers
-
-
Constructor Detail
-
LegacyClarinFCSRecordDataParser
public 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 oneDataViewParserGenericDOM
orDataViewParserGenericString
instance.fullLegacyCompatMode
- enable full legacy CLARIN-FCS compat mode- Throws:
NullPointerException
- if parsers isnull
IllegalArgumentException
- if parsers is empty or contains duplicate entries
-
-
Method Detail
-
getRecordSchema
public String getRecordSchema()
Deprecated.
-
parse
public SRURecordData parse(XMLStreamReader reader) throws XMLStreamException, SRUClientException
Deprecated.- Throws:
XMLStreamException
SRUClientException
-
parse
protected SRURecordData parse(XMLStreamReader reader, String ns, boolean fullLegacyCompatMode) throws XMLStreamException, SRUClientException
- Throws:
XMLStreamException
SRUClientException
-
-