Package commonj.sdo.helper

Examples of commonj.sdo.helper.XMLHelper.save()


        }

        try {
            DOMResult domResult = new DOMResult(DOMHelper.newDocument());
            XMLDocument xmlDoc = helper.createDocument(source, null, name);
            helper.save(xmlDoc, domResult, null);
            return node2NodeInfoTransformer.transform(domResult.getNode(), context);
        } catch (Exception e) {
            throw new TransformationException(e);
        }
View Full Code Here


      for(int elemCount=0; elemCount<elementNames.size(); elemCount++){
        String curElemName = (String)elementNames.get(elemCount);
          List elemList = root.getList(curElemName);
          for(int i=0; i<elemList.size(); i++){
            DataObject curComp = (DataObject)elemList.get(i);
            xmlStr = xmlStr+helper.save(curComp,null, curElemName);

              //System.out.println("xmlStr:"+xmlStr);

              //format xmlstr
              while(true){
View Full Code Here

        XMLHelper xmlHelperLocal = xmlHelper;
        if(objectOutput instanceof SDOObjectInputStream)
        {
            xmlHelperLocal = ((SDOObjectInputStream)objectOutput).getHelperContext().getXMLHelper();
        }
        xmlHelperLocal.save(dataObject, "commonj.sdo", "dataObject", gzipOutputStream);
        gzipOutputStream.close(); // Flush the contents

        byte[] byteArray = compressedByteArrayOutputStream.toByteArray();
        objectOutput.writeInt(byteArray.length);
        objectOutput.write(byteArray);
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.