Tabnine Logo
ObjectRecogniser
Code IndexAdd Tabnine to your IDE (free)

How to use
ObjectRecogniser
in
org.apache.tika.parser.recognition

Best Java code snippets using org.apache.tika.parser.recognition.ObjectRecogniser (Showing top 9 results out of 315)

origin: apache/tika

@Override
public Set<MediaType> getSupportedTypes(ParseContext context) {
  return recogniser.isAvailable() ? recogniser.getSupportedMimes() : Collections.<MediaType>emptySet();
}
origin: apache/tika

@Override
public void initialize(Map<String, Param> params) throws TikaConfigException {
  AnnotationUtils.assignFieldParams(recogniser, params);
  recogniser.initialize(params);
  LOG.info("Recogniser = {}", recogniser.getClass().getName());
  LOG.info("Recogniser Available = {}", recogniser.isAvailable());
}
origin: apache/tika

@Override
public synchronized void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context)
    throws IOException, SAXException, TikaException {
  if (!recogniser.isAvailable()) {
    LOG.warn("{} is not available for service", recogniser.getClass());
    return;
  List<? extends RecognisedObject> objects = recogniser.recognise(stream, handler, metadata, context);
origin: org.apache.tika/tika-parsers

@Override
public synchronized void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context)
    throws IOException, SAXException, TikaException {
  if (!recogniser.isAvailable()) {
    LOG.warn("{} is not available for service", recogniser.getClass());
    return;
  List<? extends RecognisedObject> objects = recogniser.recognise(stream, handler, metadata, context);
origin: org.apache.tika/tika-parsers

@Override
public void initialize(Map<String, Param> params) throws TikaConfigException {
  AnnotationUtils.assignFieldParams(recogniser, params);
  recogniser.initialize(params);
  LOG.info("Recogniser = {}", recogniser.getClass().getName());
  LOG.info("Recogniser Available = {}", recogniser.isAvailable());
}
origin: org.apache.tika/tika-parsers

@Override
public Set<MediaType> getSupportedTypes(ParseContext context) {
  return recogniser.isAvailable() ? recogniser.getSupportedMimes() : Collections.<MediaType>emptySet();
}
origin: com.github.lafa.tikaNoExternal/tika-external

@Override
public synchronized void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context)
    throws IOException, SAXException, TikaException {
  if (!recogniser.isAvailable()) {
    LOG.warn("{} is not available for service", recogniser.getClass());
    return;
  List<RecognisedObject> objects = recogniser.recognise(stream, handler, metadata, context);
  LOG.debug("Found {} objects", objects != null ? objects.size() : 0);
  LOG.debug("Time taken {}ms", System.currentTimeMillis() - start);
origin: com.github.lafa.tikaNoExternal/tika-external

@Override
public void initialize(Map<String, Param> params) throws TikaConfigException {
  AnnotationUtils.assignFieldParams(recogniser, params);
  recogniser.initialize(params);
  LOG.info("minConfidence = {}, topN={}", minConfidence, topN);
  LOG.info("Recogniser = {}", recogniser.getClass().getName());
  LOG.info("Recogniser Available = {}", recogniser.isAvailable());
}
origin: com.github.lafa.tikaNoExternal/tika-external

@Override
public Set<MediaType> getSupportedTypes(ParseContext context) {
  return recogniser.isAvailable() ? recogniser.getSupportedMimes() : Collections.<MediaType>emptySet();
}
org.apache.tika.parser.recognitionObjectRecogniser

Javadoc

This is a contract for object recognisers used by ObjectRecognitionParser

Most used methods

  • getSupportedMimes
    The mimes supported by this recogniser
  • initialize
    This is the hook for configuring the recogniser
  • isAvailable
    Is this service available
  • recognise
    Recognise the objects in the stream

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JTable (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now