org.codehaus.stax2.evt.XMLEvent2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-all Show documentation
Show all versions of swagger-all Show documentation
swagger-all is a rebundled verison of Swagger as one OSGi bundle.
The newest version!
package org.codehaus.stax2.evt;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.events.XMLEvent;
import org.codehaus.stax2.XMLStreamWriter2;
/**
* Interface that extends basic {@link XMLEvent2} with method(s)
* that are missing from it; specifically linkage that allows using
* a stream/event writer for outputting.
*
* NOTE: Unfortunately there is no way to cleanly retrofit this interface
* to actual implementation classes, so some casting is necessary to
* make use of new features.
*/
public interface XMLEvent2
extends XMLEvent
{
public void writeUsing(XMLStreamWriter2 w) throws XMLStreamException;
}