text: public DocumentInputStream createDocumentInputStream(final Entry document)throws IOException{if (!document.isDocumentEntry()) {throw new IOException("Entry '" + document.getName()+ "' is not a DocumentEntry");}DocumentEntry entry = (DocumentEntry)document;return new DocumentInputStream(entry);}