Package org.eclipse.persistence.platform.xml

Examples of org.eclipse.persistence.platform.xml.XMLTransformer


    /**
     * Write the XML string representation of the DOM.
     */
    public void transformToWriter(Writer writer) {
        XMLTransformer xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
        xmlTransformer.transform(this.getDOM(), writer);
    }
View Full Code Here


            } else {
                return unmarshal(streamSource.getSystemId());
            }
        } else {
          XMLUnmarshallerHandler handler = this.xmlUnmarshaller.getUnmarshallerHandler();
          XMLTransformer transformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
          SAXResult result = new SAXResult(handler);
          transformer.transform(source, result);
          return handler.getResult();
        }
    }
View Full Code Here

            } else {
                return unmarshal(streamSource.getSystemId(), clazz);
            }
        } else {
          DOMResult result = new DOMResult();
          XMLTransformer transformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
          transformer.transform(source, result);
          return unmarshal(result.getNode(), clazz);
         
        }
    }
View Full Code Here

              } else {
                  return unmarshal(streamSource.getSystemId());
              }
          } else {
            XMLUnmarshallerHandler handler = this.xmlUnmarshaller.getUnmarshallerHandler();
            XMLTransformer transformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
            SAXResult result = new SAXResult(handler);
            transformer.transform(source, result);
            return handler.getResult();         
          }
      }finally {
          xmlUnmarshaller.getStringBuffer().reset();
        }
View Full Code Here

                    return unmarshal(new InputSource(streamSource.getSystemId()), clazz, getXMLReader(clazz));
              }               
            }
        } else {
          DOMResult result = new DOMResult();
          XMLTransformer transformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
          transformer.transform(source, result);
          return unmarshal(result.getNode(), clazz);
         
        }
    }
View Full Code Here

    /**
     * Write the XML string representation of the DOM.
     */
    public void transformToWriter(Writer writer) {
        XMLTransformer xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
        xmlTransformer.transform(this.getDOM(), writer);
    }
View Full Code Here

            } else {
                return unmarshal(streamSource.getSystemId());
            }
        } else {
          XMLUnmarshallerHandler handler = this.xmlUnmarshaller.getUnmarshallerHandler();
          XMLTransformer transformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
          SAXResult result = new SAXResult(handler);
          transformer.transform(source, result);
          return handler.getResult();
        }
    }
View Full Code Here

            } else {
                return unmarshal(streamSource.getSystemId(), clazz);
            }
        } else {
          DOMResult result = new DOMResult();
          XMLTransformer transformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
          transformer.transform(source, result);
          return unmarshal(result.getNode(), clazz);
         
        }
    }
View Full Code Here

                source = domHandler.marshal(objectValue, ((JAXBErrorHandler)handler).getValidationEventHandler());
            } else {
                source = domHandler.marshal(objectValue, null);
            }
            DOMResult result = new DOMResult();
            XMLTransformer xmlTransformer = xmlPlatform.newXMLTransformer();
            xmlTransformer.setFormattedOutput(marshaller.isFormattedOutput());
            xmlTransformer.transform(source, result);
            return result.getNode().getFirstChild();
        }
        return objectValue;
    }
View Full Code Here

    /**
     * Write the XML string representation of the DOM.
     */
    public void transformToWriter(Writer writer) {
        XMLTransformer xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
        xmlTransformer.transform(this.getDOM(), writer);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.platform.xml.XMLTransformer

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.