Package xbird.util.xml

Examples of xbird.util.xml.SAXWriter


        }
    }

    public void executeWithPullMode(XQueryProcessor proc, XQueryModule module, Writer writer)
            throws XQueryException {
        SAXWriter saxwr = new SAXWriter(writer, _encoding);
        if(_prettyPrint) {
            saxwr.setPrettyPrint(true);
        }
        if(_wrap) {
            saxwr.setXMLDeclaration(false);
            try {
                writer.write("<root>\n");
            } catch (IOException e) {
                throw new IllegalStateException(e);
            }
View Full Code Here


        request1.setBaseUri(new File(queryFile).toURI());
        Object result1 = engine.execute(request1);
        RemoteSequence remoteSequence = (RemoteSequence) result1;

        StringWriter res_sw = new StringWriter();
        Serializer ser = new SAXSerializer(new SAXWriter(res_sw), res_sw);
        ser.emit(remoteSequence);
        String swresult = sw.toString();
        long used = SystemUtils.getHeapUsedMemory();
        stdbuf.append(", used(before GC): " + StringUtils.displayBytesSize(used));
        System.gc();
View Full Code Here

TOP

Related Classes of xbird.util.xml.SAXWriter

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.