Package org.apache.thrift
Interface TSerializable
-
- All Known Subinterfaces:
TBase<T,F>
- All Known Implementing Classes:
TApplicationException,TUnion
public interface TSerializableGeneric base interface for generated Thrift objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidread(TProtocol iprot)Reads the TObject from the given input protocol.voidwrite(TProtocol oprot)Writes the objects out to the protocol
-
-
-
Method Detail
-
read
void read(TProtocol iprot) throws TException
Reads the TObject from the given input protocol.- Parameters:
iprot- Input protocol- Throws:
TException- if there is an error reading from iprot
-
write
void write(TProtocol oprot) throws TException
Writes the objects out to the protocol- Parameters:
oprot- Output protocol- Throws:
TException- if there is an error writing to oprot
-
-