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