Examples of newXMLWriter()


Examples of com.ipc.oce.OCApp.newXMLWriter()

  public String getSchemaAsString(String encoding) throws JIException{
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
   
    OCDOMDocument document = getDOMDocument();
   
    OCXMLWriter xmlWriter = app.newXMLWriter();
    xmlWriter.setString(encoding);
   
    OCDOMWriter domWriter = app.newDOMWriter();
    domWriter.write(document, xmlWriter);
   
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLWriter()

   * @return строковое представление XML.
   * @throws JIException
   */
  public String writeXML(OCObject object) throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXMLWriter writer = app.newXMLWriter();
    writer.setString("UTF-8");
    writeXML(writer, object);
    return writer.close();
  }
 
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLWriter()

  }
 
  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLWriter()

  }
 
  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLWriter()

  }
 
  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLWriter()

   * @throws JIException
   */
  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLWriter()

  }
 
  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLWriter()

    OCObject dataObject = app.findDataObject(objectTypePair, uuid);
   
    Message out = exchange.getOut();
   
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    OCXMLWriter writer = app.newXMLWriter();
    writer.setString("UTF-8");
    serializer.writeXML(writer, dataObject);
    out.setBody(writer.close(), String.class);
   
  }
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLWriter()

    try {
      OCApp app = getApplication();
      OCObject obj = app.findDataObject(metaType, uuid);
     
      OCXDTOSerializer serializer = app.getXDTOSerializer();
      OCXMLWriter writer = app.newXMLWriter();
      writer.setString("UTF-8");
     
      serializer.writeXML(writer, obj);
      return writer.close();
     
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLWriter()

      reader.setString(body);
      OCObject object = serializer.readXML(reader);
      _OCCommonObject commonObject = new _OCCommonObject(object);
      commonObject.write();
     
      OCXMLWriter writer = app.newXMLWriter();
      writer.setString("UTF-8");
      serializer.writeXML(writer, commonObject);
      String xmlResp = writer.close();
     
      return Response.ok(xmlResp).build();
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.