blob: 6a30ae080046c0acf1a79f33c55d664b10a071fd [file] [log] [blame]
Mark Slee34b29262007-10-09 20:55:10 +00001// 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
7package com.facebook.thrift;
8
9import com.facebook.thrift.protocol.TProtocol;
10
11/**
12 * Generic base interface for generated Thrift objects.
13 *
14 * @author Mark Slee <mcslee@facebook.com>
15 */
16public 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}