Package net.sf.saxon.pull

Examples of net.sf.saxon.pull.PullFromIterator


            throw newXQException(e);
        }
    }

    public XMLStreamReader getSequenceAsStream() throws XQException {
        return new PullToStax(new PullFromIterator(iterateRemainder()));
    }
View Full Code Here


        }
        throw new XQException("Failed in getInt: item is not an atomic value, or is closed");
    }

    public XMLStreamReader getItemAsStream() throws XQException {
        return new PullToStax(new PullFromIterator(SingletonIterator.makeIterator(item)));
    }
View Full Code Here

    public int getPosition() throws XQException {
        throw new XQException("Sequence is forwards-only");
    }

    public XMLStreamReader getSequenceAsStream() throws XQException {
        PullFromIterator provider = new PullFromIterator(iterator);
        provider.setPipelineConfiguration(connection.getConfiguration().makePipelineConfiguration());
        return new PullToStax(provider);
    }
View Full Code Here

     */

    public void pullOLD(DynamicQueryContext dynamicEnv, Result destination, Properties outputProperties) throws XPathException {
        try {
            SequenceIterator iter = iterator(dynamicEnv);
            PullProvider pull = new PullFromIterator(iter);
            pull = new PullNamespaceReducer(pull);
            final Configuration config = executable.getConfiguration();
            pull.setPipelineConfiguration(config.makePipelineConfiguration());

            SerializerFactory sf = config.getSerializerFactory();
            Receiver receiver = sf.getReceiver(destination,
                            pull.getPipelineConfiguration(),
                            outputProperties);

//            NamespaceReducer reducer = new NamespaceReducer();
//            PipelineConfiguration pipe = pull.getPipelineConfiguration();
//            reducer.setPipelineConfiguration(pipe);
View Full Code Here

TOP

Related Classes of net.sf.saxon.pull.PullFromIterator

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.