public class BlackOutputStream extends OutputStream
OutputStream which blacks out written values.| Constructor and Description |
|---|
BlackOutputStream()
Creates a new instance without a limit.
|
BlackOutputStream(long limit)
Creates a new instance with given
limit. |
public BlackOutputStream(long limit)
limit.limit - the maximum number of bytes for writer. Any negative for
unlimited.public BlackOutputStream()
public void write(int b)
throws IOException
b.write in class OutputStreamb - the byte to writeIOException - if limit is not negative and the number of
bytes written so far exceeds it.public long getCount()
Copyright © 2011-2013. All Rights Reserved.