@Test public void testSpacesInBodyContentHandler() throws Exception { Metadata metadata = new Metadata(); metadata.set(TikaCoreProperties.RESOURCE_NAME_KEY, TEST_FILE_NAME); ContentHandler handler = new BodyContentHandler(-1); ParseContext ctx = new ParseContext(); try (InputStream stream = getResourceAsStream(TEST_FILE1)) { TikaTest.AUTO_DETECT_PARSER.parse(stream, handler, metadata, ctx); } String s = handler.toString(); TikaTest.assertContains("0\t2.3\t2.4\tlorem", s); TikaTest.assertContains("tempor\n", s); }
@Override public void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException { SQLite3DBParser p = new SQLite3DBParser(); p.parse(stream, handler, metadata, context); }
SQLite3Parser extends AbstractParser implements Initializable { @Override public void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException { SQLite3DBParser p = new SQLite3DBParser(); p.parse(stream, handler, metadata, context); } }
SQLite3Parser extends AbstractParser implements Initializable { @Override public void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException { SQLite3DBParser p = new SQLite3DBParser(); p.parse(stream, handler, metadata, context); } SQLite3Parser(); }
SQLite3Parser extends AbstractParser implements Initializable { @Override public void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException { SQLite3DBParser p = new SQLite3DBParser(); p.parse(stream, handler, metadata, context); } SQLite3Parser(); @Override Set<MediaType> getSupportedTypes(ParseContext context); @Override void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context); @Override void initialize(Map<String, Param> params); @Override void checkInitialization(InitializableProblemHandler problemHandler); }
SQLite3Parser extends AbstractParser implements Initializable { @Override public void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException { SQLite3DBParser p = new SQLite3DBParser(); p.parse(stream, handler, metadata, context); } SQLite3Parser(); @Override Set<MediaType> getSupportedTypes(ParseContext context); @Override void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context); @Override void initialize(Map<String, Param> params); @Override void checkInitialization(InitializableProblemHandler problemHandler);  }