public class ProtobufWriter extends Object
| Constructor and Description |
|---|
ProtobufWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
writeFaultRpcResponse(com.google.protobuf.CodedOutputStream cos,
Iterable<jp.go.nict.langrid.commons.rpc.RpcHeader> headers,
jp.go.nict.langrid.commons.rpc.RpcFault fault) |
static void |
writeObject(com.google.protobuf.CodedOutputStream cos,
int fieldNum,
Object value) |
static void |
writeRpcRequest(com.google.protobuf.CodedOutputStream cos,
Iterable<jp.go.nict.langrid.commons.rpc.RpcHeader> headers,
Method method,
Object... args) |
static void |
writeRpcRequest(com.google.protobuf.CodedOutputStream cos,
Map<QName,Object> headers,
Method method,
Object... args) |
static void |
writeSuccessRpcResponse(com.google.protobuf.CodedOutputStream cos,
Iterable<jp.go.nict.langrid.commons.rpc.RpcHeader> headers,
Object result) |
public static void writeRpcRequest(com.google.protobuf.CodedOutputStream cos,
Map<QName,Object> headers,
Method method,
Object... args)
throws IOException,
IllegalAccessException,
InvocationTargetException
cos - headers - method - args - IOExceptionIllegalAccessExceptionInvocationTargetExceptionpublic static void writeRpcRequest(com.google.protobuf.CodedOutputStream cos,
Iterable<jp.go.nict.langrid.commons.rpc.RpcHeader> headers,
Method method,
Object... args)
throws IOException,
IllegalAccessException,
InvocationTargetException
public static void writeSuccessRpcResponse(com.google.protobuf.CodedOutputStream cos,
Iterable<jp.go.nict.langrid.commons.rpc.RpcHeader> headers,
Object result)
throws IOException,
IllegalArgumentException,
InstantiationException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException
public static void writeFaultRpcResponse(com.google.protobuf.CodedOutputStream cos,
Iterable<jp.go.nict.langrid.commons.rpc.RpcHeader> headers,
jp.go.nict.langrid.commons.rpc.RpcFault fault)
throws IOException
IOExceptionpublic static void writeObject(com.google.protobuf.CodedOutputStream cos,
int fieldNum,
Object value)
throws IOException,
IllegalAccessException,
InvocationTargetException