org.apache.qpid.proton.engine.impl
Class PlainTransportWrapper

java.lang.Object
  extended by org.apache.qpid.proton.engine.impl.PlainTransportWrapper
All Implemented Interfaces:
TransportInput, TransportOutput, TransportWrapper

public class PlainTransportWrapper
extends Object
implements TransportWrapper


Constructor Summary
PlainTransportWrapper(TransportOutput outputProcessor, TransportInput inputProcessor)
           
 
Method Summary
 int input(byte[] bytes, int offset, int size)
           
 int output(byte[] bytes, int offset, int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTransportWrapper

public PlainTransportWrapper(TransportOutput outputProcessor,
                             TransportInput inputProcessor)
Method Detail

output

public int output(byte[] bytes,
                  int offset,
                  int size)
Specified by:
output in interface TransportOutput
Parameters:
bytes - input bytes for consumption
offset - the offset within bytes where input begins
size - the number of bytes available for input
Returns:
the number of bytes consumed

input

public int input(byte[] bytes,
                 int offset,
                 int size)
Specified by:
input in interface TransportInput
Parameters:
bytes - input bytes for consumption
offset - the offset within bytes where input begins
size - the number of bytes available for input
Returns:
the number of bytes consumed


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.