Examples of writeTo()


Examples of org.apache.abdera.writer.Writer.writeTo()

public class AtomTestCaseUtils {

    public static void prettyPrint(Abdera abdera, Base doc) throws IOException {
        WriterFactory factory = abdera.getWriterFactory();
        Writer writer = factory.getWriter("prettyxml");
        writer.writeTo(doc, System.out);
        System.out.println();
    }

    public static void printRequestHeaders( String title, String indent, RequestOptions request ) {
        System.out.println( title );
View Full Code Here

Examples of org.apache.axiom.util.blob.OverflowBlob.writeTo()

     */
    private void writeMessageFromTempData(OutputStream out) throws IOException {
        OverflowBlob serialized =
                (OverflowBlob) msgContext.getProperty(NhttpConstants.SERIALIZED_BYTES);
        try {
            serialized.writeTo(out);
        } finally {
            serialized.release();
        }
    }

View Full Code Here

Examples of org.apache.axis.Message.writeTo()

            }
            ChunkedOutputStream chunkedOutputStream = new ChunkedOutputStream(out);
            out = new BufferedOutputStream(chunkedOutputStream, 8 * 1024);
            try {
                reqMessage.writeTo(out);
            } catch (SOAPException e) {
                log.error(Messages.getMessage("exception00"), e);
            }
            out.flush();
            chunkedOutputStream.eos();
View Full Code Here

Examples of org.apache.axis2.transport.MessageFormatter.writeTo()

                || Boolean.TRUE == noEntityBody) {
                out.write(new byte[0]);
            } else {
                if (forceContentLength) {
                    if (forceContentLengthCopy && contentLength > 0) {
                        messageFormatter.writeTo(msgContext, format, out, false);
                    } else {
                        writeMessageFromTempData(out, msgContext);
                    }
                } else {
                    messageFormatter.writeTo(msgContext, format, out, false);
View Full Code Here

Examples of org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo()

        outputFormat.setCharSetEncoding(MessageContext.DEFAULT_CHAR_SET_ENCODING);

        ByteArrayOutputStream outStream = new ByteArrayOutputStream();

        SOAPMessageFormatter formatter = new SOAPMessageFormatter();
        formatter.writeTo(msgCtx, outputFormat, outStream, true);

        outStream.flush();
        outStream.close();
    }
View Full Code Here

Examples of org.apache.cocoon.pipeline.caching.CacheValue.writeTo()

        if (cachedValue != null) {
            // cached value found -> write it
            if (this.logger.isDebugEnabled()) {
                this.logger.debug("Write cache value to output stream: " + cachedValue);
            }
            cachedValue.writeTo(this.cachingOutputStream.getOutputStream());

            if (!this.isCacheKeyValid(cachedValue)) {
                if (this.logger.isDebugEnabled()) {
                    this.logger.debug("Cached value is not up to date. Delegating to " + this.cacheRefreshManager);
                }
View Full Code Here

Examples of org.apache.commons.io.output.ByteArrayOutputStream.writeTo()

        transformer.transform(src, res);
       
        OutputStream out = new java.io.FileOutputStream(
                new File(backupDir, foFile.getName() + ".pdf"));
        try {
            baout.writeTo(out);
        } finally {
            IOUtils.closeQuietly(out);
        }
       
        //Check how many times the resolver was consulted
View Full Code Here

Examples of org.apache.cxf.jaxrs.provider.JAXBElementProvider.writeTo()

    public void writeTo(GenericHandler<Book> o, Class<?> c, Type t, Annotation[] anns, MediaType m,
                        MultivaluedMap<String, Object> headers, OutputStream os)
        throws IOException, WebApplicationException {
        JAXBElementProvider jaxb = new JAXBElementProvider();
        jaxb.writeTo(o.getEntity(), o.getEntity().getClass(), InjectionUtils.getActualType(t),
                     anns, m, headers, os);
    }


}
View Full Code Here

Examples of org.apache.directory.server.dhcp.options.DhcpOption.writeTo()

        message.put( VENDOR_MAGIC_COOKIE );

        for ( Iterator i = options.iterator(); i.hasNext(); )
        {
            DhcpOption option = ( DhcpOption ) i.next();
            option.writeTo( message );
        }

        // add end option
        message.put( ( byte ) 0xff );
    }
View Full Code Here

Examples of org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.writeTo()

      cos.writeRawVarint32(fullLength);
     
      // write header
      cos.writeRawVarint32(HEADER_TAG);
      cos.writeRawVarint32(headerLength);
      header.writeTo(cos);

      // write protobuf body length and body
      cos.writeRawVarint32(PROTOBUF_BODY_TAG);
      cos.writeRawVarint32(protoBodyLength);
      msg.pBody.writeTo(cos);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.