1 // Copyright (c) 2006- Facebook
2 // Distributed under the Thrift Software License
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
;
12 * Generic base interface for generated Thrift objects.
14 * @author Mark Slee <mcslee@facebook.com>
16 public interface TBase
{
19 * Reads the TObject from the given input protocol.
21 * @param iprot Input protocol
23 public void read(TProtocol iprot
) throws TException
;
26 * Writes the objects out to the protocol
28 * @param oprot Output protocol
30 public void write(TProtocol oprot
) throws TException
;