gnu.iou
Class bbo

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--gnu.iou.bbo
Direct Known Subclasses:
dbo

public class bbo
extends java.io.OutputStream

Wrapper for `bbuf' exporting standard output API.

Author:
John Pritchard (john@syntelos.org)
See Also:
bbuf, bbi

Constructor Summary
bbo()
           
bbo(bbuf buf)
           
bbo(int capacity)
           
 
Method Summary
 void close()
           
 void flush()
           
 bbuf getByteBuffer()
           
 int length()
           
 void reset()
           
 byte[] toByteArray()
           
 void write(byte[] b)
           
 void write(byte[] b, int ofs, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

bbo

public bbo(int capacity)

bbo

public bbo()

bbo

public bbo(bbuf buf)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream

write

public void write(byte[] b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream

write

public void write(byte[] b,
                  int ofs,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class java.io.OutputStream

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.OutputStream

getByteBuffer

public bbuf getByteBuffer()

length

public int length()

reset

public void reset()

toByteArray

public byte[] toByteArray()