public final class TMemoryInputTransport
extends org.apache.thrift.transport.TTransport
Constructor and Description |
---|
TMemoryInputTransport(ByteBuffer buf) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
consumeBuffer(int len) |
byte[] |
getBuffer() |
int |
getBufferPosition() |
int |
getBytesRemainingInBuffer() |
boolean |
isOpen() |
void |
open() |
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
boolean |
readBoolean() |
byte |
readByte() |
ByteBuffer |
readBytes(int size) |
double |
readDouble() |
void |
readFully(byte[] buffer) |
void |
readFully(byte[] buf,
int offset,
int count) |
int |
readInt() |
long |
readLong() |
short |
readShort() |
void |
write(byte[] buf,
int off,
int len) |
public TMemoryInputTransport(ByteBuffer buf)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.thrift.transport.TTransport
public boolean isOpen()
isOpen
in class org.apache.thrift.transport.TTransport
public void open() throws org.apache.thrift.transport.TTransportException
open
in class org.apache.thrift.transport.TTransport
org.apache.thrift.transport.TTransportException
public int read(byte[] buf, int off, int len) throws org.apache.thrift.transport.TTransportException
read
in class org.apache.thrift.transport.TTransport
org.apache.thrift.transport.TTransportException
public void write(byte[] buf, int off, int len) throws org.apache.thrift.transport.TTransportException
write
in class org.apache.thrift.transport.TTransport
org.apache.thrift.transport.TTransportException
public byte[] getBuffer()
getBuffer
in class org.apache.thrift.transport.TTransport
public int getBufferPosition()
getBufferPosition
in class org.apache.thrift.transport.TTransport
public int getBytesRemainingInBuffer()
getBytesRemainingInBuffer
in class org.apache.thrift.transport.TTransport
public void consumeBuffer(int len)
consumeBuffer
in class org.apache.thrift.transport.TTransport
public int read()
public boolean readBoolean()
public byte readByte()
public short readShort()
public int readInt()
public long readLong()
public double readDouble()
public ByteBuffer readBytes(int size) throws org.apache.thrift.TException
org.apache.thrift.TException
public void readFully(byte[] buffer) throws org.apache.thrift.TException
org.apache.thrift.TException
public void readFully(byte[] buf, int offset, int count) throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2013–2017. All rights reserved.