Package org.daisy.braille.utils.pef
Class TextInputDetector
- java.lang.Object
-
- org.daisy.braille.utils.pef.TextInputDetector
-
public class TextInputDetector extends Object
Provides a method for detecting a table based on text input.
-
-
Constructor Summary
Constructors Constructor Description TextInputDetector(TableCatalogService factory)
Creates a new TextInputDetector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Table>
detect(InputStream is)
Detects tables matching the supplied text input.
-
-
-
Constructor Detail
-
TextInputDetector
public TextInputDetector(TableCatalogService factory)
Creates a new TextInputDetector.- Parameters:
factory
- the table catalog
-
-
Method Detail
-
detect
public List<Table> detect(InputStream is) throws 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:
IOException
- if input cannot be read
-
-