log.debug("Plain Content: \n{}",writer.toString());
}
String random = randomUUID().toString();
UriRef textBlobUri = new UriRef("urn:tika:text:"+random);
ci.addPart(textBlobUri,
new InMemoryBlob(writer.toString(),
TEXT_PLAIN.toString())); //string -> no encoding
if(xhtmlHandler != null){
if(log.isDebugEnabled()){
log.debug("XML Content: \n{}",xhtmlHandler.toString());
}
UriRef xhtmlBlobUri = new UriRef("urn:tika:xhtml:"+random);
ci.addPart(xhtmlBlobUri,
new InMemoryBlob(xhtmlHandler.toString(),
"application/xhtml+xml")); //string -> no encoding
}
//add the extracted metadata
if(log.isDebugEnabled()){
for(String name : metadata.names()){