org.jgroups.util
Class ExposedBufferedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.BufferedOutputStream
              extended by org.jgroups.util.ExposedBufferedOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class ExposedBufferedOutputStream
extends java.io.BufferedOutputStream

Version:
$Id: ExposedBufferedOutputStream.java,v 1.1 2005/07/25 15:53:36 belaban Exp $
Author:
Bela Ban

Field Summary
 
Fields inherited from class java.io.BufferedOutputStream
buf, count
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
ExposedBufferedOutputStream(java.io.OutputStream out)
          Creates a new buffered output stream to write data to the specified underlying output stream.
ExposedBufferedOutputStream(java.io.OutputStream out, int size)
          Creates a new buffered output stream to write data to the specified underlying output stream with the specified buffer size.
 
Method Summary
 void reset(int size)
           
 
Methods inherited from class java.io.BufferedOutputStream
flush, write, write
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExposedBufferedOutputStream

public ExposedBufferedOutputStream(java.io.OutputStream out)
Creates a new buffered output stream to write data to the specified underlying output stream.

Parameters:
out - the underlying output stream.

ExposedBufferedOutputStream

public ExposedBufferedOutputStream(java.io.OutputStream out,
                                   int size)
Creates a new buffered output stream to write data to the specified underlying output stream with the specified buffer size.

Parameters:
out - the underlying output stream.
size - the buffer size.
Throws:
java.lang.IllegalArgumentException - if size <= 0.
Method Detail

reset

public void reset(int size)


Copyright ? 1998-2006 Bela Ban. All Rights Reserved.