tango.io.device.BitBucket

A Conduit that ignores all that is written to it

License:

BSD style: see license.txt

Version:

Initial release: July 2008

Author:

Fawzi Mohamed
class BitBucket : Conduit ΒΆ
A Conduit that ignores all that is written to it and returns Eof when read from. Note that write() returns the length of what was handed to it, acting as a pure bit-bucket. Returning zero or Eof instead would not be appropriate in this context.