use of org.apache.thrift.transport.TMemoryInputTransport in project jena by apache.
the class ThriftConverter method getInputTransport.
private static TMemoryInputTransport getInputTransport() {
TMemoryInputTransport transport = inputTransports.get();
if (transport != null)
return transport;
transport = new TMemoryInputTransport();
inputTransports.set(transport);
return transport;
}
use of org.apache.thrift.transport.TMemoryInputTransport in project jena by apache.
the class ThriftConverter method fromBytes.
public static void fromBytes(byte[] bs, RDF_Term term) throws TException {
TMemoryInputTransport transport = getInputTransport();
transport.reset(bs);
TProtocol protocol = getInputProtocol();
term.read(protocol);
}
Aggregations