4 * Copyright (c) 2006- Facebook
5 * Distributed under the Thrift Software License
7 * See accompanying file LICENSE or visit the Thrift site at:
8 * http://developers.facebook.com/thrift/
10 * @package thrift.transport
11 * @author Mark Slee <mcslee@facebook.com>
15 * Transport that only accepts writes and ignores them.
16 * This is useful for measuring the serialized size of structures.
18 * @package thrift.transport
19 * @author David Reiss <dreiss@facebook.com>
21 class TNullTransport
extends TTransport
{
23 public function isOpen() {
27 public function open() {}
29 public function close() {}
31 public function read($len) {
32 throw new TTransportException("Can't read from TNullTransport.");
35 public function write($buf) {}