use of org.apache.stanbol.enhancer.servicesapi.impl.StreamSource in project stanbol by apache.
the class TikaEngineTest method createContentItem.
private ContentItem createContentItem(String resourceName, String contentType) throws IOException {
InputStream in = TikaEngineTest.class.getClassLoader().getResourceAsStream(resourceName);
assertNotNull(in);
return ciFactory.createContentItem(new StreamSource(in, contentType));
}
Aggregations