/** * create a new DocumentEntry * * @param document the new document * * @return the new DocumentEntry * * @exception IOException if the document can't be created */ DocumentEntry createDocument(final POIFSDocument document) throws IOException { DocumentProperty property = document.getDocumentProperty(); DocumentNode rval = new DocumentNode(property, this); (( DirectoryProperty ) getProperty()).addChild(property); _nfilesystem.addDocument(document); _entries.add(rval); _byname.put(property.getName(), rval); return rval; }
/** * create a new DocumentEntry * * @param document the new document * * @return the new DocumentEntry * * @exception IOException */ DocumentEntry createDocument(final POIFSDocument document) throws IOException { DocumentProperty property = document.getDocumentProperty(); DocumentNode rval = new DocumentNode(property, this); (( DirectoryProperty ) getProperty()).addChild(property); _ofilesystem.addDocument(document); _entries.add(rval); _byname.put(property.getName(), rval); return rval; }
/** * create a new DocumentEntry * * @param document the new document * * @return the new DocumentEntry * * @exception IOException if the document can't be created */ DocumentEntry createDocument(final POIFSDocument document) throws IOException { DocumentProperty property = document.getDocumentProperty(); DocumentNode rval = new DocumentNode(property, this); (( DirectoryProperty ) getProperty()).addChild(property); _nfilesystem.addDocument(document); _entries.add(rval); _byname.put(property.getName(), rval); return rval; }
/** * create a new DocumentEntry * * @param document the new document * * @return the new DocumentEntry * * @exception IOException */ DocumentEntry createDocument(final POIFSDocument document) throws IOException { DocumentProperty property = document.getDocumentProperty(); DocumentNode rval = new DocumentNode(property, this); (( DirectoryProperty ) getProperty()).addChild(property); _ofilesystem.addDocument(document); _entries.add(rval); _byname.put(property.getName(), rval); return rval; }