105106107108109110111112113114115116117118119
"Body".equals(reader.getLocalName())) { // Copy the body contents to a StreamDataHandler reader.nextTag(); XMLStreamWriterImpl xmlWriter = new XMLStreamWriterImpl(out, false); StaxUtil.copyReaderToWriter(reader, xmlWriter); xmlWriter.flush(); foundBody = true; break; }
160161162163164165166167168169170
throws IOException, RestException { WriteStream ws = Vfs.openWrite(out); try { XMLStreamWriterImpl writer = new XMLStreamWriterImpl(ws); _marshaller.marshal(result, writer); } catch (JAXBException e) { throw new RuntimeException(e);