@Override public String getPIData() { if (this.event.isProcessingInstruction()) { return ((ProcessingInstruction) this.event).getData(); } else { throw new IllegalStateException(); } }
@Override public String getPITarget() { if (this.event.isProcessingInstruction()) { return ((ProcessingInstruction) this.event).getTarget(); } else { throw new IllegalStateException(); } }
@Override public String getPITarget() { if (this.event.isProcessingInstruction()) { return ((ProcessingInstruction) this.event).getTarget(); } else { throw new IllegalStateException(); } }
@Override public String getPIData() { if (this.event.isProcessingInstruction()) { return ((ProcessingInstruction) this.event).getData(); } else { throw new IllegalStateException(); } }
@Override public final XMLEvent nextTag() throws XMLStreamException { XMLEvent event = this.nextEvent(); while ((event.isCharacters() && event.asCharacters().isWhiteSpace()) || event.isProcessingInstruction() || event.getEventType() == XMLStreamConstants.COMMENT) { event = this.nextEvent(); } if (!event.isStartElement() && event.isEndElement()) { throw new XMLStreamException("Unexpected event type '" + XMLStreamConstantsUtils.getEventName(event.getEventType()) + "' encountered. Found event: " + event, event.getLocation()); } return event; } }
@Override public final XMLEvent nextTag() throws XMLStreamException { XMLEvent event = this.nextEvent(); while ((event.isCharacters() && event.asCharacters().isWhiteSpace()) || event.isProcessingInstruction() || event.getEventType() == XMLStreamConstants.COMMENT) { event = this.nextEvent(); } if (!event.isStartElement() && event.isEndElement()) { throw new XMLStreamException("Unexpected event type '" + XMLStreamConstantsUtils.getEventName(event.getEventType()) + "' encountered. Found event: " + event, event.getLocation()); } return event; } }
public String getPITarget() { if (event.isProcessingInstruction()) { return ((ProcessingInstruction) event).getTarget(); } else { throw new IllegalStateException(); } }
public String getPIData() { if (event.isProcessingInstruction()) { return ((ProcessingInstruction) event).getData(); } else { throw new IllegalStateException(); } }
/** * Constructs a DOM4J ProcessingInstruction from the provided event stream. * The stream must be positioned before a {@link ProcessingInstruction} * event. * * @param reader * The event stream from which to read the ProcessingInstruction. * * @return The ProcessingInstruction that was read from the stream. * * @throws XMLStreamException * If an error occured reading events from the stream, or the * stream was not positioned before a {@link * ProcessingInstruction} event. */ public org.dom4j.ProcessingInstruction readProcessingInstruction( XMLEventReader reader) throws XMLStreamException { XMLEvent event = reader.peek(); if (event.isProcessingInstruction()) { ProcessingInstruction pi = (ProcessingInstruction) reader .nextEvent(); return createProcessingInstruction(pi); } else { throw new XMLStreamException("Expected PI event, found: " + event); } }
} else if (event.isStartDocument()) { return readDocument(reader); } else if (event.isProcessingInstruction()) { return readProcessingInstruction(reader); } else if (event.isEntityReference()) {
current.addContent(factory.entityRef( ((javax.xml.stream.events.EntityReference)event).getName())); } else if (event.isProcessingInstruction()) { final ProcessingInstruction pi = factory.processingInstruction( ((javax.xml.stream.events.ProcessingInstruction)event).getTarget(),
public String getPIData() { if (event.isProcessingInstruction()) { return ((ProcessingInstruction) event).getData(); } else { throw new IllegalStateException(); } }
public String getPIData() { if (event.isProcessingInstruction()) { return ((ProcessingInstruction) event).getData(); } else { throw new IllegalStateException(); } }
@Override public String getPITarget() { if (event.isProcessingInstruction()) { return ((ProcessingInstruction) event).getTarget(); } else { throw new IllegalStateException(); } }
public String getPITarget() { if (event.isProcessingInstruction()) { return ((ProcessingInstruction) event).getTarget(); } else { throw new IllegalStateException(); } }
public String getPIData() { if (event.isProcessingInstruction()) { return ((ProcessingInstruction) event).getData(); } else { throw new IllegalStateException(); } }
@Override public String getPIData() { if (this.event.isProcessingInstruction()) { return ((ProcessingInstruction) this.event).getData(); } else { throw new IllegalStateException(); } }
@Override public String getPITarget() { if (this.event.isProcessingInstruction()) { return ((ProcessingInstruction) this.event).getTarget(); } else { throw new IllegalStateException(); } }
public String getPITarget() { if (event.isProcessingInstruction()) { return ((ProcessingInstruction) event).getTarget(); } else { throw new IllegalStateException(); } }
@Override public String getPIData() { if (event.isProcessingInstruction()) { return ((ProcessingInstruction) event).getData(); } else { throw new IllegalStateException(); } }