All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fordfrog.xml2csv.InputStreamConverter Maven / Gradle / Ivy

Go to download

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);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy