Package org.apache.thrift.transport
Class TFileTransport.Event
java.lang.Object
org.apache.thrift.transport.TFileTransport.Event
- Enclosing class:
- TFileTransport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintemit(byte[] buf, int offset, int ndesired) byte[]getBuf()intintgetSize()voidsetAvailable(int sz)
-
Constructor Details
-
Event
public Event(byte[] buf) Initialize an event. Initially, it has no valid contents- Parameters:
buf- byte array buffer to store event
-
-
Method Details
-
getBuf
public byte[] getBuf() -
getSize
public int getSize() -
setAvailable
public void setAvailable(int sz) -
getRemaining
public int getRemaining() -
emit
public int emit(byte[] buf, int offset, int ndesired)
-