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