@Override protected void commentInternal(String comment) throws XMLStreamException { this.eventWriter.add(this.eventFactory.createComment(comment)); }
@Override public void writeComment(String data) throws XMLStreamException { closeEmptyElementIfNecessary(); this.eventWriter.add(this.eventFactory.createComment(data)); }
@Override protected void commentInternal(String comment) throws XMLStreamException { this.eventWriter.add(this.eventFactory.createComment(comment)); }
@Override public void writeComment(String data) throws XMLStreamException { closeEmptyElementIfNecessary(); this.eventWriter.add(this.eventFactory.createComment(data)); }
@Override public void marshal(Object graph, Result result) throws XmlMappingException, IOException { try { StaxTestUtils.getXmlEventWriter(result).add(XMLEventFactory.newInstance().createComment(graph.toString())); } catch ( Exception e) { throw new RuntimeException("Exception while writing to output file", e); } }
/** * StartDocument and EndDocument events are not passed to the wrapped * writer. */ public void testNoStartEnd() throws Exception { XMLEvent event = eventFactory.createComment("testEvent"); // mock expects only a single event wrappedWriter.add(event); writer.add(eventFactory.createStartDocument()); writer.add(event); writer.add(eventFactory.createEndDocument()); }
/** * Constructs a STAX {@link javax.xml.stream.events.Comment}event from a * DOM4J {@link Comment}. * * @param comment * The {@link Comment}from which to construct the event. * * @return The constructed {@link javax.xml.stream.events.Comment}event. */ public javax.xml.stream.events.Comment createComment(Comment comment) { return factory.createComment(comment.getText()); }
public void writeComment(String data) throws XMLStreamException { eventWriter.add(eventFactory.createComment(data)); }
/** * This will handle printing of a {@link Comment}. * * @param out * <code>XMLEventConsumer</code> to use. * @param fstack * the FormatStack * @param eventfactory * The XMLEventFactory for creating XMLEvents * @param comment * <code>Comment</code> to write. * @throws XMLStreamException * if the destination XMLEventConsumer fails */ protected void printComment(final XMLEventConsumer out, final FormatStack fstack, final XMLEventFactory eventfactory, final Comment comment) throws XMLStreamException { out.add(eventfactory.createComment(comment.getText())); }
/** * Constructs a STAX {@link javax.xml.stream.events.Comment}event from a * DOM4J {@link Comment}. * * @param comment * The {@link Comment}from which to construct the event. * * @return The constructed {@link javax.xml.stream.events.Comment}event. */ public javax.xml.stream.events.Comment createComment(Comment comment) { return factory.createComment(comment.getText()); }
/** * Constructs a STAX {@link javax.xml.stream.events.Comment}event from a * DOM4J {@link Comment}. * * @param comment * The {@link Comment}from which to construct the event. * * @return The constructed {@link javax.xml.stream.events.Comment}event. */ public javax.xml.stream.events.Comment createComment(Comment comment) { return factory.createComment(comment.getText()); }
public void writeComment(String arg0) throws XMLStreamException { addEvent(factory.createComment(arg0)); }
/** * Constructs a STAX {@link javax.xml.stream.events.Comment}event from a * DOM4J {@link Comment}. * * @param comment * The {@link Comment}from which to construct the event. * * @return The constructed {@link javax.xml.stream.events.Comment}event. */ public javax.xml.stream.events.Comment createComment(Comment comment) { return factory.createComment(comment.getText()); }
/** * Creates and adds a {@link Comment} event. * * @param comment The comment text, as per * {@link XMLEventFactory#createComment(String)}. * @throws XMLStreamException If an error occurs adding the event. */ public void addComment(String comment) throws XMLStreamException { add(factory.createComment(comment)); }
/** * Constructs a STAX {@link javax.xml.stream.events.Comment}event from a * DOM4J {@link Comment}. * * @param comment * The {@link Comment}from which to construct the event. * * @return The constructed {@link javax.xml.stream.events.Comment}event. */ public javax.xml.stream.events.Comment createComment(Comment comment) { return factory.createComment(comment.getText()); }
/** * Constructs a STAX {@link javax.xml.stream.events.Comment}event from a * DOM4J {@link Comment}. * * @param comment * The {@link Comment}from which to construct the event. * * @return The constructed {@link javax.xml.stream.events.Comment}event. */ public javax.xml.stream.events.Comment createComment(Comment comment) { return factory.createComment(comment.getText()); }
/** * Constructs a STAX {@link javax.xml.stream.events.Comment}event from a * DOM4J {@link Comment}. * * @param comment * The {@link Comment}from which to construct the event. * * @return The constructed {@link javax.xml.stream.events.Comment}event. */ public javax.xml.stream.events.Comment createComment(Comment comment) { return factory.createComment(comment.getText()); }
/** * Constructs a STAX {@link javax.xml.stream.events.Comment}event from a * DOM4J {@link Comment}. * * @param comment * The {@link Comment}from which to construct the event. * * @return The constructed {@link javax.xml.stream.events.Comment}event. */ public javax.xml.stream.events.Comment createComment(Comment comment) { return factory.createComment(comment.getText()); }
public void writeComment(String arg0) throws XMLStreamException { addEvent(factory.createComment(arg0)); }
public void comment(char[] ch, int start, int length) throws SAXException { this.eventFactory.setLocation(this.getCurrentLocation()); try { this.consumer.add(this.eventFactory.createComment(new String(ch, start, length))); } catch (XMLStreamException e) { throw new SAXException(e); } }