com.fordfrog.xml2csv.InputStreamConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xml-to-csv Show documentation
Show all versions of xml-to-csv Show documentation
Forked version of fordfrog xml2csv library that allows selection of xml elements via attributes
The newest version!
package com.fordfrog.xml2csv;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import java.io.InputStream;
public class InputStreamConverter {
public XMLStreamReader toXmlStreamReader(InputStream inputStream) {
try {
final XMLInputFactory xMLInputFactory = XMLInputFactory.newInstance();
return xMLInputFactory.createXMLStreamReader(inputStream);
} catch (XMLStreamException e) {
throw new Xml2CsvException(e);
}
}
}