Examples of StaxBridge


Examples of com.sun.xml.messaging.saaj.soap.StaxBridge

        return ((BodyImpl) getBody()).getPayloadReader();
    }
   
    @Override
    public void writeTo(final XMLStreamWriter writer) throws XMLStreamException, SOAPException {
      StaxBridge readBridge = this.getStaxBridge();
      if (readBridge != null && readBridge instanceof StaxLazySourceBridge) {
//          StaxSoapWriteBridge writingBridge =  new StaxSoapWriteBridge(this);
//          writingBridge.write(writer);    
          final String soapEnvNS = this.getNamespaceURI();
          final DOMStreamReader reader = new DOMStreamReader(this);
View Full Code Here

Examples of net.sf.saxon.pull.StaxBridge

            }
            //XMLStreamReader reader = ((StAXSource)source).getXMLStreamReader();
            if (reader == null) {
                throw new XPathException("Saxon can only handle a StAXSource that wraps an XMLStreamReader");
            }
            StaxBridge bridge = new StaxBridge();
            bridge.setXMLStreamReader(reader);
            sendPullSource(new PullSource(bridge), next, options);
            return;
        } else {
            next = makeValidator(next, source.getSystemId(), options);
View Full Code Here

Examples of net.sf.saxon.pull.StaxBridge

                b.setPipelineConfiguration(pipe);
                new Sender(pipe).send((Source)value, b);
                return b.getCurrentRoot();
            } else if (value instanceof XMLStreamReader) {
                // Saxon extension to the XQJ specification
                StaxBridge bridge = new StaxBridge();
                bridge.setXMLStreamReader((XMLStreamReader)value);
                Builder b = new TinyBuilder();
                PipelineConfiguration pipe = config.makePipelineConfiguration();
                b.setPipelineConfiguration(pipe);
                new Sender(pipe).send(new PullSource(bridge), b);
                return b.getCurrentRoot();
View Full Code Here

Examples of net.sf.saxon.pull.StaxBridge

        }
    }

    public XQItem createItemFromDocument(XMLStreamReader value, XQItemType type) throws XQException {
        try {
            StaxBridge bridge = new StaxBridge();
            bridge.setXMLStreamReader(value);
            Source ss = new PullSource(bridge);
            ss = augmentSource(ss, type);
            DocumentInfo doc = getConfiguration().buildDocument(ss);
            checkDocumentType(doc, (SaxonXQItemType)type);
            return new SaxonXQItem(doc, this);
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.