org.apgrid.grpc.ng
Class Wire
java.lang.Object
org.apgrid.grpc.ng.Wire
- Direct Known Subclasses:
- XDRWire
- public abstract class Wire
- extends java.lang.Object
Constructor Summary |
Wire()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Wire
public Wire()
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