public class SlowOutputStream extends FilterOutputStream
out
Constructor and Description |
---|
SlowOutputStream(OutputStream out,
int cps)
Create wrapped Output Stream toe emulate the requested CPS.
|
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, flush, write
public SlowOutputStream(OutputStream out, int cps)
out
- OutputStreamcps
- characters per secondpublic void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void write(int b) throws IOException
write
in class FilterOutputStream
IOException
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.