Package org.bouncycastle.util.io
Class LimitedBuffer
- java.lang.Object
-
- java.io.OutputStream
-
- org.bouncycastle.util.io.LimitedBuffer
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class LimitedBuffer extends java.io.OutputStream
-
-
Constructor Summary
Constructors Constructor Description LimitedBuffer(int limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
copyTo(byte[] b, int off)
int
limit()
void
reset()
int
size()
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
-
-
-
Method Detail
-
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 classjava.io.OutputStream
-
write
public void write(byte[] b)
- Overrides:
write
in classjava.io.OutputStream
-
write
public void write(byte[] b, int off, int len)
- Overrides:
write
in classjava.io.OutputStream
-
-