Package org.jgroups.util
Class ExposedBufferedOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.BufferedOutputStream
-
- org.jgroups.util.ExposedBufferedOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
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
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reset(int size)
-
-
-
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.
-
-