Package com.facebook.thrift.transport

Examples of com.facebook.thrift.transport.TIOStreamTransport


    /**
     * Get the transport that should be used by the invoker for responding.
     */
    private TTransport getOutputTransport() {
      response_ = new TByteArrayOutputStream();
      return outputTransportFactory_.getTransport(new TIOStreamTransport(
          response_));
    }
View Full Code Here


     * Get a transport that works for reading and responding
     */
    private TTransport getInputOutputTransport() {
      response_ = new TByteArrayOutputStream();
      return inputTransportFactory_.getTransport(
        new TIOStreamTransport(
          new ByteArrayInputStream(buffer_.array()),
          response_));
    }
View Full Code Here

        //Creates a buffer to serialize/deserialize with
        InputStream in = new ByteArrayInputStream(new byte[1]);
        mbuf_in        = new PushbackInputStream(in,10000); //supports 10k msg size
        mbuf_out       = new ByteArrayOutputStream();
        mbuf_transport = new TIOStreamTransport(mbuf_in, mbuf_out);
        mbuf_protocol  = new TBinaryProtocol(mbuf_transport);
    }
View Full Code Here

TOP

Related Classes of com.facebook.thrift.transport.TIOStreamTransport

Copyright © 2018 www.massapicom. 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.