org.jboss.remoting.transport.multiplex.utility
Class ShrinkableByteArrayOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.ByteArrayOutputStream
          extended byorg.jboss.remoting.transport.multiplex.utility.ShrinkableByteArrayOutputStream

public class ShrinkableByteArrayOutputStream
extends java.io.ByteArrayOutputStream

A ShrinkableByteArrayOutputStream.

Version:
$Revision: 1.3 $

Copyright (c) 2005

Author:
Ron Sigal

Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
ShrinkableByteArrayOutputStream()
          Create a new ShrinkableByteArrayOutputStream.
 
Method Summary
 int available()
          FIXME Comment this
 int bytesReturned()
          FIXME Comment this
protected  int getCount()
           
protected  int getLength()
           
protected  int getNextUsed()
           
protected  int getUsed()
           
 int start()
          FIXME Comment this
 byte[] toByteArray(int length)
          FIXME Comment this
 void write(byte[] b, int off, int len)
          Writes len bytes from the specified byte array starting at offset off to this byte array output stream.
 void write(int b)
          Writes the specified byte to this byte array output stream.
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShrinkableByteArrayOutputStream

public ShrinkableByteArrayOutputStream()
Create a new ShrinkableByteArrayOutputStream.

Method Detail

available

public int available()
FIXME Comment this

Returns:

bytesReturned

public int bytesReturned()
FIXME Comment this

Returns:

start

public int start()
FIXME Comment this

Returns:

toByteArray

public byte[] toByteArray(int length)
FIXME Comment this

Parameters:
length -
Returns:

write

public void write(int b)
Writes the specified byte to this byte array output stream.

Parameters:
b - the byte to be written.

write

public void write(byte[] b,
                  int off,
                  int len)
Writes len bytes from the specified byte array starting at offset off to this byte array output stream.

Parameters:
b - the data.
off - the start offset in the data.
len - the number of bytes to write.

getCount

protected int getCount()

getLength

protected int getLength()

getNextUsed

protected int getNextUsed()

getUsed

protected int getUsed()


Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.