if (dotPos == -1) {
throw new RegainException("Can't detect file extension: " + url);
}
String extension = url.substring(dotPos);
IfilterWrapper ifilter = getIfilterWrapperForExtension(extension);
String fileName = rawDocument.getContentAsFile().getAbsolutePath();
StringBuffer buffer = new StringBuffer(DEFAULT_BUFFER_SIZE);
ifilter.getText(fileName, buffer);
setCleanedContent(buffer.toString());
}