public BadgerFishDOMDocumentSerializer(OutputStream output) { super(output, new BadgerFishXMLOutputFactory()); }
public static XMLStreamWriter createBadgerFishWriter(OutputStream os, String enc) throws XMLStreamException { XMLOutputFactory factory = new BadgerFishXMLOutputFactory(); return factory.createXMLStreamWriter(os, enc); }
public static XMLStreamWriter createBadgerFishWriter(OutputStream os, String enc) throws XMLStreamException { XMLOutputFactory factory = new BadgerFishXMLOutputFactory(); return factory.createXMLStreamWriter(os, enc); }
public static XMLStreamWriter createBadgerFishWriter(OutputStream os) throws XMLStreamException { XMLOutputFactory factory = new BadgerFishXMLOutputFactory(); return factory.createXMLStreamWriter(os); }
xmlOutputFactory = new BadgerFishXMLOutputFactory();
public void writeTo(Object obj, Class<?> clazz, Type genericType, Annotation[] annotations, MediaType m, MultivaluedMap<String, Object> headers, OutputStream os) { try { if (!new Locale("badgerFishLanguage").equals(requestHeaders.getLanguage())) { throw new RuntimeException(); } JAXBContext context = getJAXBContext(obj.getClass()); Marshaller marshaller = context.createMarshaller(); XMLOutputFactory factory = new BadgerFishXMLOutputFactory(); XMLStreamWriter xsw = factory.createXMLStreamWriter(os); marshaller.marshal(obj, xsw); xsw.close(); } catch (JAXBException | XMLStreamException e) { e.printStackTrace(); } }
break; case badgerfish: marshaller.marshal(data, new BadgerFishXMLOutputFactory().createXMLStreamWriter(outStream)); break; default:
break; case badgerfish: marshaller.marshal(data, new BadgerFishXMLOutputFactory().createXMLStreamWriter(outStream)); break; default:
case badgerfish: data = prepareForJAXBMarshalling(data, request); marshaller.marshal(data, new BadgerFishXMLOutputFactory().createXMLStreamWriter(outStream)); break; default: