Package org.odftoolkit.odfdom.pkg.rdfa

Examples of org.odftoolkit.odfdom.pkg.rdfa.SAXRDFaParser


        XMLReader xmlReader = mPackage.getXMLReader();
        OdfFileSaxHandler odf = new OdfFileSaxHandler(this);
        String baseUri = Util.getRDFBaseUri(mPackage.getBaseURI(),mPackagePath);
        sink = new JenaSink(this);
        odf.setSink(sink);
        SAXRDFaParser rdfa = SAXRDFaParser.createInstance(sink);
        rdfa.setBase(baseUri);
        // the file is parsed by ODF ContentHandler, and then RDFa ContentHandler
        MultiContentHandler multi = new MultiContentHandler(odf, rdfa);
        xmlReader.setContentHandler(multi);
        InputSource xmlSource = new InputSource(fileStream);
        xmlReader.parse(xmlSource);
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.pkg.rdfa.SAXRDFaParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.