Examples of Stripper


Examples of net.sf.saxon.event.Stripper

            if (source instanceof NodeInfo || source instanceof DOMSource) {
                NodeInfo startNode = controller.prepareInputTree(source);
                newdoc = startNode.getDocumentRoot();
            } else {
                Builder b = controller.makeBuilder();
                Stripper s = controller.makeStripper(b);
                new Sender(controller.getConfiguration()).send(source, s);
                newdoc = b.getCurrentDocument();
            }
            controller.registerDocument(newdoc, documentKey);
            return getFragment(newdoc, fragmentId);
View Full Code Here

Examples of net.sf.saxon.event.Stripper

    protected TransformerHandlerImpl(Controller controller) {
        this.controller = controller;
        setConfiguration(controller.getConfiguration());
        builder = controller.makeBuilder();
        builder.setConfiguration(controller.getConfiguration());
        Stripper stripper = controller.makeStripper(builder);
        this.setReceiver(stripper);
    }
View Full Code Here

Examples of net.sf.saxon.event.Stripper

        if (params != null) {
            int stripSpace = params.getStripSpace();
            switch (stripSpace) {
                case Whitespace.ALL: {
                    Stripper stripper = AllElementStripper.getInstance();
                    stripper.setStripAll();
                    source = AugmentedSource.makeAugmentedSource(source);
                    ((AugmentedSource)source).addFilter(stripper);
                    break;
                }
                case Whitespace.IGNORABLE:
View Full Code Here

Examples of net.sf.saxon.event.Stripper

     *
     * @return the constructed Stripper object
     */

    public Stripper newStripper() {
        return new Stripper(stripperRules);
    }
View Full Code Here

Examples of net.sf.saxon.event.Stripper

    */

    public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException {
        // The underlying code does not do whitespace stripping. So we need to interpose
        // a stripper.
        Stripper stripper = docWrapper.getStripper().getAnother();
        stripper.setUnderlyingReceiver(out);
        node.copy(stripper, whichNamespaces, copyAnnotations, locationId);
    }
View Full Code Here

Examples of net.sf.saxon.event.Stripper

                    if (parser != null) {
                        source = AugmentedSource.makeAugmentedSource(source);
                        ((AugmentedSource)source).setXMLReader(parser);
                    }

                    Stripper stripper;
                    if (params != null) {
                        int stripSpace = params.getStripSpace();
                        switch (strip) {
                            case Whitespace.ALL: {
                                stripper = AllElementStripper.getInstance();
                                stripper.setStripAll();
                                source = AugmentedSource.makeAugmentedSource(source);
                                ((AugmentedSource)source).addFilter(stripper);
                                break;
                            }
                            case Whitespace.IGNORABLE:
View Full Code Here

Examples of org.pdf4j.saxon.event.Stripper

     *
     * @return the constructed Stripper object
     */

    public Stripper newStripper() {
        return new Stripper(stripperRules);
    }
View Full Code Here

Examples of org.pdf4j.saxon.event.Stripper

        if (params != null) {
            int stripSpace = params.getStripSpace();
            switch (stripSpace) {
                case Whitespace.ALL: {
                    Stripper stripper = AllElementStripper.getInstance();
                    stripper.setStripAll();
                    source = AugmentedSource.makeAugmentedSource(source);
                    ((AugmentedSource)source).addFilter(stripper);
                    break;
                }
                case Whitespace.IGNORABLE:
View Full Code Here

Examples of org.pdf4j.saxon.event.Stripper

    */

    public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException {
        // The underlying code does not do whitespace stripping. So we need to interpose
        // a stripper.
        Stripper stripper = docWrapper.getStripper().getAnother();
        stripper.setUnderlyingReceiver(out);
        node.copy(stripper, whichNamespaces, copyAnnotations, locationId);
    }
View Full Code Here

Examples of org.pdf4j.saxon.event.Stripper

                    if (parser != null) {
                        source = AugmentedSource.makeAugmentedSource(source);
                        ((AugmentedSource)source).setXMLReader(parser);
                    }

                    Stripper stripper;
                    if (params != null) {
                        int stripSpace = params.getStripSpace();
                        switch (strip) {
                            case Whitespace.ALL: {
                                stripper = AllElementStripper.getInstance();
                                stripper.setStripAll();
                                source = AugmentedSource.makeAugmentedSource(source);
                                ((AugmentedSource)source).addFilter(stripper);
                                break;
                            }
                            case Whitespace.IGNORABLE:
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.