public class CircularOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
CircularOutputStream(java.lang.String name,
int maxBytes)
Constructs a new circular output stream.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
void |
write(byte[] b)
Implements
OutputStream.write(byte[]). |
void |
write(byte[] b,
int off,
int len)
Implements
OutputStream.write(byte[],int,int). |
void |
write(int b)
Implements
OutputStream.write(int). |
public CircularOutputStream(java.lang.String name,
int maxBytes)
throws java.io.IOException
name - the name of the output stream.maxBytes - the maximum number of bytes in the output stream.java.io.IOException - if the stream cannot be created or written.public void write(byte[] b)
throws java.io.IOException
OutputStream.write(byte[]).write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
OutputStream.write(byte[],int,int).write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
OutputStream.write(int).write in class java.io.OutputStreamjava.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.