Package org.aksw.iguana.cc.lang
Class LanguageProcessor
java.lang.Object
org.aksw.iguana.cc.lang.LanguageProcessor
- Direct Known Subclasses:
SaxSparqlJsonResultCountingParser
,SaxSparqlXmlResultCountingParser
,SparqlCsvResultCountingParser
,SparqlTsvResultCountingParser
Interface for abstract language processors that work on InputStreams.
LanguageProcessors are used to process the content of an InputStream and extract relevant information.
They are used by the Worker to process the response of a request.
LanguageProcessors must be registered in the static block of this class.
LanguageProcessors must be registered in the static block of this class.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Provides the content type that a LanguageProcessor consumes.static interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LanguageProcessor
getInstance
(String contentType) process
(InputStream inputStream, long hash)
-
Constructor Details
-
LanguageProcessor
public LanguageProcessor()
-
-
Method Details
-
process
public abstract LanguageProcessor.LanguageProcessingData process(InputStream inputStream, long hash) -
getInstance
-