Package org.exist.xqdoc

Source Code of org.exist.xqdoc.XQDocHelper

package org.exist.xqdoc;

import org.exist.source.Source;
import org.xqdoc.conversion.XQDocController;
import org.xqdoc.conversion.XQDocException;
import org.xqdoc.conversion.XQDocPayload;

import java.io.IOException;


public class XQDocHelper {

    private XQDocController controller;

    public XQDocHelper() throws XQDocException {
        controller = new XQDocController(XQDocController.JAN2007);
        controller.setEncodeURIs(false);
    }

    public String scan(Source source, String name) throws XQDocException, IOException {
        XQDocPayload payload = controller.process(source.getReader(), name);
        return payload.getXQDocXML();
    }
}
TOP

Related Classes of org.exist.xqdoc.XQDocHelper

TOP
Copyright © 2018 www.massapi.com. 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.