use of org.mycore.common.content.MCRVFSContent in project mycore by MyCoRe-Org.
the class MCRBase method setFromURI.
/**
* This method read the XML input stream from an URI to build up the
* MyCoRe-Object.
*
* @param uri
* an URI
* @exception MCRException
* general Exception of MyCoRe
*/
protected final void setFromURI(URI uri) throws MCRException, SAXParseException, IOException {
Document jdom = MCRXMLParserFactory.getParser().parseXML(new MCRVFSContent(uri));
setFromJDOM(jdom);
}
use of org.mycore.common.content.MCRVFSContent in project mycore by MyCoRe-Org.
the class MCRNode method doGetContent.
private MCRVFSContent doGetContent() throws IOException {
MCRVFSContent content = new MCRVFSContent(fo);
content.setName(getName());
return content;
}
Aggregations