/** * Open the stream of Receiver events */ public void open () throws XPathException { started = true; depth = 0; size[depth] = 0; super.open(); }
public BuildingStreamWriterImpl(Receiver receiver, Builder builder) { super(receiver); this.builder = builder; builder.open(); }
public BuildingStreamWriterImpl(Receiver receiver, Builder builder) { super(receiver); this.builder = builder; builder.open(); }
/** * Open the stream of Receiver events */ public void open() { started = true; depth = 0; size[depth] = 0; if (arrays == null) { arrays = new ArrayList<NodeImpl[]>(20); } super.open(); }
/** * Open the stream of Receiver events */ public void open() { started = true; depth = 0; size[depth] = 0; if (arrays == null) { arrays = new ArrayList<NodeImpl[]>(20); } super.open(); }
/** * Open the event stream */ public void open() { //System.err.println("TinyBuilder " + this + " open; " + started); if (started) { // this happens when using an IdentityTransformer return; } if (tree == null) { tree = new TinyTree(config, statistics); currentDepth = 0; if (lineNumbering) { tree.setLineNumbering(); } } super.open(); }
/** * Open the event stream */ public void open() { //System.err.println("TinyBuilder " + this + " open; " + started); if (started) { // this happens when using an IdentityTransformer return; } if (tree == null) { tree = new TinyTree(config, statistics); currentDepth = 0; if (lineNumbering) { tree.setLineNumbering(); } } super.open(); }
/** * Copy a DOM node to create a node in a different tree model * * @param node the DOM node to be copied * @param model the target tree model * @param config the Saxon Configuration * @return the copied node * @throws net.sf.saxon.trans.XPathException * if the operation fails * @since 9.2 */ public NodeInfo copy(Node node, TreeModel model, Configuration config) throws XPathException { PipelineConfiguration pipe = config.makePipelineConfiguration(); Builder builder = model.makeBuilder(pipe); builder.open(); Sender.send(new DOMSource(node), builder, null); NodeInfo result = builder.getCurrentRoot(); builder.close(); return result; }
/** * Copy a DOM node to create a node in a different tree model * * @param node the DOM node to be copied * @param model the target tree model * @param config the Saxon Configuration * @return the copied node * @throws net.sf.saxon.trans.XPathException * if the operation fails * @since 9.2 */ public NodeInfo copy(Node node, TreeModel model, Configuration config) throws XPathException { PipelineConfiguration pipe = config.makePipelineConfiguration(); Builder builder = model.makeBuilder(pipe); builder.open(); Sender.send(new DOMSource(node), builder, null); NodeInfo result = builder.getCurrentRoot(); builder.close(); return result; }
/** * Open the event stream */ public void open() throws XPathException { if (started) { // this happens when using an IdentityTransformer return; } if (tree == null) { if (sizeParameters==null) { tree = new TinyTree(); } else { tree = new TinyTree(sizeParameters[0], sizeParameters[1], sizeParameters[2], sizeParameters[3]); } tree.setConfiguration(config); currentDepth = 0; if (lineNumbering) { tree.setLineNumbering(); } } super.open(); }
/** * Open the event stream */ public void open() throws XPathException { if (started) { // this happens when using an IdentityTransformer return; } if (tree == null) { if (sizeParameters==null) { tree = new TinyTree(); } else { tree = new TinyTree(sizeParameters[0], sizeParameters[1], sizeParameters[2], sizeParameters[3]); } tree.setConfiguration(config); currentDepth = 0; if (lineNumbering) { tree.setLineNumbering(); } } super.open(); }
/** * Open the event stream */ public void open() throws XPathException { if (started) { // this happens when using an IdentityTransformer return; } if (tree == null) { if (sizeParameters==null) { tree = new TinyTree(); } else { tree = new TinyTree(sizeParameters[0], sizeParameters[1], sizeParameters[2], sizeParameters[3]); } tree.setConfiguration(config); currentDepth = 0; if (lineNumbering) { tree.setLineNumbering(); } } super.open(); }
Builder builder = context.getController() .makeBuilder(); builder.open(); builder.startDocument(0); List<Block> l = hl.highlight(n2i
super.open();
Builder builder = context.getController() .makeBuilder(); builder.open(); builder.startDocument(0); List<Block> l = hl.highlight(n2i
builder.open(); stylesheetNode.copy(filter, 0, ExplicitLocation.UNKNOWN_LOCATION); builder.close();