org.apgrid.grpc.ng
Class Wire

java.lang.Object
  extended byorg.apgrid.grpc.ng.Wire
Direct Known Subclasses:
XDRWire

public abstract class Wire
extends java.lang.Object


Constructor Summary
Wire()
           
 
Method Summary
 byte[] receiveBytes(byte[] buffer)
           
abstract  byte[] receiveBytes(byte[] buffer, int start, int length)
           
abstract  java.lang.String receiveString()
           
abstract  void sendBytes(byte[] buffer)
           
abstract  void sendBytes(byte[] buffer, int offset, int length)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wire

public Wire()
Method Detail

receiveString

public abstract java.lang.String receiveString()
                                        throws GrpcException
Returns:
Throws:
GrpcException

receiveBytes

public abstract byte[] receiveBytes(byte[] buffer,
                                    int start,
                                    int length)
                             throws GrpcException
Parameters:
buffer -
start -
length -
Returns:
Throws:
GrpcException

receiveBytes

public byte[] receiveBytes(byte[] buffer)
                    throws GrpcException
Parameters:
buffer -
Returns:
Throws:
GrpcException

sendBytes

public abstract void sendBytes(byte[] buffer)
                        throws GrpcException
Parameters:
buffer -
Throws:
GrpcException

sendBytes

public abstract void sendBytes(byte[] buffer,
                               int offset,
                               int length)
                        throws GrpcException
Parameters:
buffer -
offset -
length -
Throws:
GrpcException