public class SlowOutputStream extends FilterOutputStream
out
Constructor and Description |
---|
SlowOutputStream(OutputStream out,
int cps)
Create wrapped Output Stream toe emulate the requested CPS.
|
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-2016 Apache Software Foundation. All Rights Reserved.