@Test public void shouldConvertWordDocToText() throws IOException, TikaException, SAXException { InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream("testDoc.doc"); byte[] bytes = IOUtils.toByteArray(resourceAsStream); String text = service.convertToText(bytes); assertTrue(text.contains("test")); }
public String convertToText(byte[] data) { return convertWithHandler(data, new BodyContentHandler(-1)); }
DocumentConversionService { public String convertToText(byte[] data) { return convertWithHandler(data, new BodyContentHandler(-1)); } }
DocumentConversionService { public String convertToText(byte[] data) { return convertWithHandler(data, new BodyContentHandler(-1)); }  }
DocumentConversionService { public String convertToText(byte[] data) { return convertWithHandler(data, new BodyContentHandler(-1)); }  String convertToText(byte[] data); String convertToXHTML(byte[] data); String tryOCRByConvertingToTiff(DNCWorkCoordinate coordinate, byte[] bytes); }
DocumentConversionService { public String convertToText(byte[] data) { return convertWithHandler(data, new BodyContentHandler(-1)); }  String convertToText(byte[] data); String convertToXHTML(byte[] data); String tryOCRByConvertingToTiff(DNCWorkCoordinate coordinate, byte[] bytes); public Boolean imageMagickInstalled; }