org.apgrid.grpc.ng
Class XDRWire

java.lang.Object
  extended byorg.apgrid.grpc.ng.Wire
      extended byorg.apgrid.grpc.ng.XDRWire

public class XDRWire
extends Wire


Constructor Summary
XDRWire(java.net.Socket socket)
           
 
Method Summary
 byte[] receiveBytes(byte[] buffer, int start, int length)
           
 java.lang.String receiveString()
           
 void sendBytes(byte[] buffer)
           
 void sendBytes(byte[] buffer, int offset, int length)
           
 
Methods inherited from class org.apgrid.grpc.ng.Wire
receiveBytes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XDRWire

public XDRWire(java.net.Socket socket)
        throws GrpcException
Parameters:
socket -
Throws:
GrpcException
Method Detail

receiveString

public java.lang.String receiveString()
                               throws GrpcException
Specified by:
receiveString in class Wire
Returns:
Throws:
GrpcException

receiveBytes

public byte[] receiveBytes(byte[] buffer,
                           int start,
                           int length)
                    throws GrpcException
Specified by:
receiveBytes in class Wire
Parameters:
buffer -
start -
length -
Returns:
Throws:
GrpcException

sendBytes

public void sendBytes(byte[] buffer)
               throws GrpcException
Specified by:
sendBytes in class Wire
Parameters:
buffer -
Throws:
GrpcException

sendBytes

public void sendBytes(byte[] buffer,
                      int offset,
                      int length)
               throws GrpcException
Specified by:
sendBytes in class Wire
Parameters:
buffer -
offset -
length -
Throws:
GrpcException