Package org.ozoneDB.xml.util

Examples of org.ozoneDB.xml.util.SAXChunkConsumer.processChunk()


    public Node xmlForObject(OzoneRemote rObj, Document domFactory) throws Exception {
        byte[] bytes = (byte[]) sendCommand(new DbXMLForObj((OzoneProxy) rObj), true);

        SAXChunkConsumer consumer = new SAXChunkConsumer(domFactory, null);
        consumer.processChunk(bytes);

        return consumer.getResultNode();
    }

View Full Code Here


    public void xmlForObject(OzoneRemote rObj, ContentHandler ch) throws Exception {
        byte[] bytes = (byte[]) sendCommand(new DbXMLForObj((OzoneProxy) rObj), true);

        SAXChunkConsumer consumer = new SAXChunkConsumer(ch);
        consumer.processChunk(bytes);
    }


    /**
     * Return the administration object for this database.
View Full Code Here

        DbXMLForObj command = new DbXMLForObj((OzoneProxy) rObj);
        command.perform(env.transactionManager.currentTA());
        byte[] bytes = (byte[]) command.result;

        SAXChunkConsumer consumer = new SAXChunkConsumer(domFactory, null);
        consumer.processChunk(bytes);

        return consumer.getResultNode();
    }

View Full Code Here

        DbXMLForObj command = new DbXMLForObj((OzoneProxy) rObj);
        command.perform(env.transactionManager.currentTA());
        byte[] bytes = (byte[]) command.result;

        SAXChunkConsumer consumer = new SAXChunkConsumer(ch);
        consumer.processChunk(bytes);
    }

    /**
        Internal method. This method is called by {@link OzoneProxy}s when they are dying (during finalize()). This
        is required, as the database may track the references the database client has to objects within the database
View Full Code Here

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.