private JSONUtils() {
}
public static XMLStreamWriter createBadgerFishWriter(OutputStream os, String enc) throws XMLStreamException {
XMLOutputFactory factory = new BadgerFishXMLOutputFactory();
return factory.createXMLStreamWriter(os, enc);
}
public static XMLStreamReader createBadgerFishReader(InputStream is, String enc) throws XMLStreamException {
XMLInputFactory factory = new BadgerFishXMLInputFactory();
return factory.createXMLStreamReader(is, enc);