@Override protected void pi(final byte[] name, final byte[] value) throws IOException { try { contentHandler.processingInstruction(string(name), string(value)); } catch (final SAXException ex) { throw new IOException(ex); } }
/** * This will invoke the <code>ContentHandler.processingInstruction</code> callback when a * processing instruction is encountered. * * @param pi <code>ProcessingInstruction</code> containing target and data. */ private void processingInstruction(ProcessingInstruction pi) throws JDOMException { if (pi != null) { String target = pi.getTarget(); String data = pi.getData(); try { contentHandler.processingInstruction(target, data); } catch (SAXException se) { throw new JDOMException("Exception in processingInstruction", se); } } }
public void processingInstruction(String target, String data) throws SAXException { if (ch != null) { ch.processingInstruction(target, data); } }