Allows to specify additional options such as password or base URI when loading a document into a Document object in Java....the document from a stream: InputStream stream = new FileInputStream(getMyDir()...new Document(stream, options); } finally { if (stream != null) stream...