public void writeTo(Writer writer, OutputStream out, WriterOptions options) throws IOException { writer.writeTo(this, out, options); }
static public void prettyPrint(Document<? extends Element> doc) { //=== Write it prettily! === Abdera abdera = Abdera.getInstance(); try { Writer writer = abdera.getWriterFactory().getWriter("prettyxml"); WriterOptions writeOptions = writer.getDefaultWriterOptions(); writeOptions.setCharset("UTF-8"); writer.writeTo(doc, System.out, writeOptions); } catch (Exception e) { e.printStackTrace(); } // FIXME: Document this exception }
public void writeTo(java.io.Writer javaWriter, Writer abderaWriter) throws IOException { abderaWriter.writeTo(base, javaWriter); }
public void writeTo(Writer writer, java.io.Writer out, WriterOptions options) throws IOException { writer.writeTo(this, out, options); }
public void writeTo(Writer writer, java.io.Writer out, WriterOptions options) throws IOException { writer.writeTo(this, out, options); }
public void writeTo(Writer writer, OutputStream out) throws IOException { writer.writeTo(this, out); }
public void writeTo(Writer writer, OutputStream out) throws IOException { writer.writeTo(this, out); }
public void writeTo(Writer writer, java.io.Writer out) throws IOException { writer.writeTo(this, out); }
public void writeTo(Writer writer, java.io.Writer out) throws IOException { writer.writeTo(this, out); }
public void writeTo(Writer writer, OutputStream out, WriterOptions options) throws IOException { writer.writeTo(this, out, options); }
public void writeTo(OutputStream out, Writer writer) throws IOException { writer.writeTo(base, out); }
public void writeTo(OutputStream out, WriterOptions options) throws IOException { Writer writer = this.getFactory().getAbdera().getWriter(); writer.writeTo(this, out, options); }
public void writeTo(java.io.Writer out, WriterOptions options) throws IOException { Writer writer = this.getFactory().getAbdera().getWriter(); writer.writeTo(this, out, options); }
public void writeTo(OutputStream out, WriterOptions options) throws IOException { Writer writer = this.getFactory().getAbdera().getWriter(); writer.writeTo(this, out, options); }
public void writeTo(java.io.Writer out, WriterOptions options) throws IOException { Writer writer = this.getFactory().getAbdera().getWriter(); writer.writeTo(this, out, options); }
public void writeTo(Categories categories, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> headers, OutputStream stream) throws IOException, WebApplicationException { if (mediaType.equals(MediaType.APPLICATION_JSON_TYPE) || mediaType.getSubtype().endsWith("+json")) { Writer writer = Abdera.getInstance().getWriterFactory().getWriter("json"); writer.writeTo(categories, stream); } else { categories.writeTo(stream); } }
public void writeTo(java.io.Writer writer) throws IOException { Writer out = getFactory().getAbdera().getWriter(); if (!(out instanceof FOMWriter)) { out.writeTo(this, writer); } else { try { OMOutputFormat outputFormat = new OMOutputFormat(); if (getDocument() != null && getDocument().getCharset() != null) outputFormat.setCharSetEncoding(getDocument().getCharset()); serialize(writer, outputFormat); } catch (XMLStreamException e) { throw new FOMException(e); } } }
public void writeTo(java.io.Writer writer) throws IOException { Writer out = getFactory().getAbdera().getWriter(); if (!(out instanceof FOMWriter)) { out.writeTo(this, writer); } else { try { OMOutputFormat outputFormat = new OMOutputFormat(); if (this.getCharsetEncoding() != null) outputFormat.setCharSetEncoding(this.getCharsetEncoding()); MTOMXMLStreamWriter omwriter = new MTOMXMLStreamWriter(StAXUtils.createXMLStreamWriter(writer)); omwriter.setOutputFormat(outputFormat); this.internalSerialize(omwriter); omwriter.flush(); } catch (XMLStreamException e) { throw new FOMException(e); } } }