Merge commit 'remotes/trunk'
[amiethrift.git] / lib / java / src / TBase.java
blob6a30ae080046c0acf1a79f33c55d664b10a071fd
1 // Copyright (c) 2006- Facebook
2 // Distributed under the Thrift Software License
3 //
4 // See accompanying file LICENSE or visit the Thrift site at:
5 // http://developers.facebook.com/thrift/
7 package com.facebook.thrift;
9 import com.facebook.thrift.protocol.TProtocol;
11 /**
12 * Generic base interface for generated Thrift objects.
14 * @author Mark Slee <mcslee@facebook.com>
16 public interface TBase {
18 /**
19 * Reads the TObject from the given input protocol.
21 * @param iprot Input protocol
23 public void read(TProtocol iprot) throws TException;
25 /**
26 * Writes the objects out to the protocol
28 * @param oprot Output protocol
30 public void write(TProtocol oprot) throws TException;