Class TextInputDetector


  • public class TextInputDetector
    extends java.lang.Object
    Provides a method for detecting a table based on text input.
    Author:
    Joel HÃ¥kansson
    • Constructor Summary

      Constructors 
      Constructor Description
      TextInputDetector()
      Creates a new TextInputDetector
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Table> detect​(java.io.InputStream is)
      Detects tables matching the supplied text input.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextInputDetector

        public TextInputDetector()
        Creates a new TextInputDetector
    • Method Detail

      • detect

        public java.util.List<Table> detect​(java.io.InputStream is)
                                     throws java.io.IOException
        Detects tables matching the supplied text input. Only tables that create non-identical output are included. Therefore, more than one match indicates that the output would look different depending on the table chosen.
        Parameters:
        is - text input stream
        Returns:
        returns a list of matching tables
        Throws:
        java.io.IOException - if input cannot be read