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);}
public DocumentInputStream CreateDocumentInputStream(Entry document){if (!document.IsDocumentEntry){throw new IOException("Entry '" + document.Name+ "' is not a DocumentEntry");}DocumentEntry entry = (DocumentEntry)document;return new DocumentInputStream(entry);}