Top Description Constructors Methods
org.bouncycastle.crypto

public abstract Class UpdateOutputStream

extends OutputStream
Class Inheritance
Known Direct Subclasses
org.bouncycastle.crypto.fips.FipsAES.AEADOperatorFactory.AADStream, org.bouncycastle.crypto.general.GuardedAEADOperatorFactory.AADStream, org.bouncycastle.crypto.internal.io.DigestOutputStream, org.bouncycastle.crypto.internal.io.MacOutputStream, org.bouncycastle.crypto.internal.io.SignerOutputStream, org.bouncycastle.crypto.internal.io.XofOutputStream, org.bouncycastle.crypto.CipherOutputStream
Imports
java.io.IOException, .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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final void
update(byte
the data to be written to the stream.
b
)

Update the stream with the passed in byte.

public final void
update(byte[]
the data to be written to the stream.
buffer
)

Update the stream with the passed in buffer.

public final void
update(byte[]
the buffer holding the data to be written.
buffer
,
int
the offset into buffer at which the data starts.
off
,
int
the length of the data to be written.
len
)

Update the stream with a section of the passed in buffer.

Inherited from java.io.OutputStream:
closeflushnullOutputStreamwritewritewrite

Constructor Detail

UpdateOutputStreamback to summary
public UpdateOutputStream()

Method Detail

updateback to summary
public final void update(byte b)

Update the stream with the passed in byte.

Parameters
b:byte

the data to be written to the stream.

updateback to summary
public final void update(byte[] buffer)

Update the stream with the passed in buffer.

Parameters
buffer:byte[]

the data to be written to the stream.

updateback to summary
public final void update(byte[] buffer, int off, int len)

Update the stream with a section of the passed in buffer.

Parameters
buffer:byte[]

the buffer holding the data to be written.

off:int

the offset into buffer at which the data starts.

len:int

the length of the data to be written.