List of usage examples for javax.xml.stream XMLEventReader remove
default void remove()
From source file:org.dataconservancy.model.builder.WrappingEventReaderTest.java
@Test(expected = UnsupportedOperationException.class) public void testRemoveWithDefaultEventReader() throws Exception { final XMLEventReader reader = readerFactory .createXMLEventReader(IOUtils.toInputStream(SINGLE_ELEMENT_DOC_WHITESPACE)); assertTrue(reader.hasNext());/*from www. ja v a 2s . c o m*/ reader.nextEvent(); reader.remove(); }
From source file:org.dataconservancy.model.builder.WrappingEventReaderTest.java
@Test(expected = UnsupportedOperationException.class) public void testRemoveWithWrapperEventReader() throws Exception { final XMLEventReader reader = new WrappingEventReader( readerFactory.createXMLEventReader(IOUtils.toInputStream(SINGLE_ELEMENT_DOC_WHITESPACE))); assertTrue(reader.hasNext());//from w w w . j a v a 2 s.c o m reader.nextEvent(); reader.remove(); }