![JAR search and dependency download from the Maven repository](/logo.png)
org.xs4j.xmlspitter.StAXSpitterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xmlslurper Show documentation
Show all versions of xmlslurper Show documentation
An attempt to port parsing capabilities offered by Groovy XMLSlurper into the Java world. The following is not planned to be accurate projection, instead the most useful functions will be implemented.
The newest version!
package org.xs4j.xmlspitter;
import javax.xml.stream.XMLOutputFactory;
/**
* Created by mturski on 1/5/2017.
*/
public final class StAXSpitterFactory implements XMLSpitterFactory {
public static XMLSpitterFactory getInstance() {
return new StAXSpitterFactory();
}
private StAXSpitterFactory() {
}
@Override
public final XMLSpitter createXMLSpitter() {
XMLOutputFactory xmlOutputFactory = XMLOutputFactory.newInstance();
return new XMLSpitterImpl(new XMLSpitterImpl.StAXStreamProvider(xmlOutputFactory));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy