Mark Slee | 34b2926 | 2007-10-09 20:55:10 +0000 | [diff] [blame] | 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/ |
| 6 | |
| 7 | package com.facebook.thrift; |
| 8 | |
| 9 | import com.facebook.thrift.protocol.TProtocol; |
| 10 | |
| 11 | /** |
| 12 | * Generic base interface for generated Thrift objects. |
| 13 | * |
| 14 | * @author Mark Slee <mcslee@facebook.com> |
| 15 | */ |
| 16 | public interface TBase { |
| 17 | |
| 18 | /** |
| 19 | * Reads the TObject from the given input protocol. |
| 20 | * |
| 21 | * @param iprot Input protocol |
| 22 | */ |
| 23 | public void read(TProtocol iprot) throws TException; |
| 24 | |
| 25 | /** |
| 26 | * Writes the objects out to the protocol |
| 27 | * |
| 28 | * @param oprot Output protocol |
| 29 | */ |
| 30 | public void write(TProtocol oprot) throws TException; |
| 31 | } |