Package org.bouncycastle.util.io
Class LimitedBuffer
java.lang.Object
java.io.OutputStream
org.bouncycastle.util.io.LimitedBuffer
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Constructor Details
-
LimitedBuffer
public LimitedBuffer(int limit)
-
-
Method Details
-
copyTo
public int copyTo(byte[] b, int off) -
limit
public int limit() -
reset
public void reset() -
size
public int size() -
write
public void write(int b) - Specified by:
write
in classOutputStream
-
write
public void write(byte[] b) - Overrides:
write
in classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
write
in classOutputStream
-