Package org.bouncycastle.crypto
Class UpdateOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.bouncycastle.crypto.UpdateOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Direct Known Subclasses:
CipherOutputStream
,DigestOutputStream
,MacOutputStream
,SignerOutputStream
,XofOutputStream
public abstract class UpdateOutputStream extends java.io.OutputStream
An extension of output stream that provides update methods which allow for data to feed into the stream without the need to handle checked exceptions.
-
-
Constructor Summary
Constructors Constructor Description UpdateOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
update(byte b)
Update the stream with the passed in byte.void
update(byte[] buffer)
Update the stream with the passed in buffer.void
update(byte[] buffer, int off, int len)
Update the stream with a section of the passed in buffer.
-
-
-
Method Detail
-
update
public final void update(byte b)
Update the stream with the passed in byte.- Parameters:
b
- the data to be written to the stream.
-
update
public final void update(byte[] buffer)
Update the stream with the passed in buffer.- Parameters:
buffer
- the data to be written to the stream.
-
update
public final void update(byte[] buffer, int off, int len)
Update the stream with a section of the passed in buffer.- Parameters:
buffer
- the buffer holding the data to be written.off
- the offset into buffer at which the data starts.len
- the length of the data to be written.
-
-