public class TCalcTransport
extends org.apache.thrift.transport.TTransport
| Constructor and Description |
|---|
TCalcTransport() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Dummy override to satisfy interface.
|
int |
getSize()
Returns the size that has been written to this transport since the last reset.
|
int |
getSizeAndReset()
Returns the size that has been written to this transport since the last reset
and resets the size.
|
boolean |
isOpen()
Dummy override to satisfy interface.
|
void |
open()
Dummy override to satisfy interface.
|
int |
read(byte[] bytes,
int offset,
int length)
Dummy override to satisfy interface.
|
void |
resetSize()
Resets the size that has been written to this transport since the last reset.
|
void |
write(byte[] bytes,
int offset,
int length)
Record the number of bytes being written to this transport.
|
public boolean isOpen()
isOpen in class org.apache.thrift.transport.TTransportpublic void open()
throws org.apache.thrift.transport.TTransportException
open in class org.apache.thrift.transport.TTransportorg.apache.thrift.transport.TTransportException - not used for our purposespublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class org.apache.thrift.transport.TTransportpublic int read(byte[] bytes,
int offset,
int length)
throws org.apache.thrift.transport.TTransportException
read in class org.apache.thrift.transport.TTransportbytes - not used for our purposesoffset - not used for our purposeslength - not used for our purposesorg.apache.thrift.transport.TTransportException - not used for our purposespublic void write(byte[] bytes,
int offset,
int length)
throws org.apache.thrift.transport.TTransportException
write in class org.apache.thrift.transport.TTransportbytes - not used for our purposesoffset - not used for our purposeslength - the length of bytes being writtenorg.apache.thrift.transport.TTransportException - this will never throwpublic int getSizeAndReset()
public int getSize()
public void resetSize()