/** * Callback interface for SAX: not for application use */ public void open () throws XPathException { // System.err.println("Stripper#startDocument()"); top = 0; stripStack[top] = ALWAYS_PRESERVE; // {xml:preserve = false, preserve this element = true} super.open(); }
@Override public void setSystemId(String systemId) { super.setSystemId(sysId); } };
@Override public void attribute(NodeName attName, SimpleType typeCode, CharSequence value, Location location, int properties) throws XPathException { written = true; super.attribute(attName, typeCode, value, location, properties); }
for (int i=filters.size()-1; i>=0; i--) { ProxyReceiver filter = (ProxyReceiver)filters.get(i); filter.setPipelineConfiguration(pipe); filter.setSystemId(source.getSystemId()); filter.setUnderlyingReceiver(next); next = filter;
@Override public void startContent() throws XPathException { contentStarted = true; super.startContent(); }
@Override public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { written = true; super.namespace(namespaceBindings, properties); }
/** * Notify the end of a document node */ public void endDocument() throws XPathException { if (depth == 1) { depth--; super.endDocument(); } }
/** * Start of a document node. */ @Override public void startDocument(int properties) throws XPathException { if (level++ != 0) { super.startDocument(properties); } }
@Override public void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException { contentStarted = false; super.startElement(nameCode, typeCode, location, properties); }
/** * Set the pipeline configuration * * @param pipe the pipeline configuration */ public void setPipelineConfiguration(/*@NotNull*/ PipelineConfiguration pipe) { super.setPipelineConfiguration(pipe); bufferedAttributes = new AttributeCollectionImpl(pipe.getConfiguration()); }
public ProxyReceiver(/*@NotNull*/ Receiver nextReceiver) { super(nextReceiver.getPipelineConfiguration()); setUnderlyingReceiver(nextReceiver); setPipelineConfiguration(nextReceiver.getPipelineConfiguration()); }
@Override public void append(Item item, Location location, int properties) throws XPathException { written = true; super.append(item, location, properties); }
@Override public void startContent() throws XPathException { if (!suppressStartContent) { super.startContent(); } suppressStartContent = false; }
@Override public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { written = true; super.namespace(namespaceBindings, properties); }
/** * Notify the end of a document node */ public void endDocument() throws XPathException { if (depth == 1) { depth--; super.endDocument(); } }
@Override public void startDocument(int properties) throws XPathException { if (DEBUG) { System.err.println("CHECKSUM - START DOC"); } super.startDocument(properties); }
@Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { written = true; super.startElement(elemName, typeCode, location, properties); }
/** * Set the pipeline configuration * @param pipe the pipeline configuration */ public void setPipelineConfiguration(PipelineConfiguration pipe) { super.setPipelineConfiguration(pipe); bufferedAttributes = new AttributeCollectionImpl(pipe.getConfiguration()); }
public ProxyReceiver(/*@NotNull*/ Receiver nextReceiver) { super(nextReceiver.getPipelineConfiguration()); setUnderlyingReceiver(nextReceiver); setPipelineConfiguration(nextReceiver.getPipelineConfiguration()); }
@Override public void append(Item item, Location location, int properties) throws XPathException { written = true; super.append(item, location, properties); }