/** Get the document object representing the current document. */
public Document getDocument()
{
FixedSizeInputStream fsis = new FixedSizeInputStream(is, currentDocumentBlobLength);
fsis.suppressClose();
Document rtr;
try {
rtr = documentClass.getConstructor(InputStream.class, Map.class, Tokeniser.class).newInstance(fsis, DocProperties, tokeniser);
} catch (Exception e) {
throw new RuntimeException(e);