gnu.crypto.assembly
Class LoopbackTransformer
(package private) final class LoopbackTransformer
A trivial
Transformer to allow closing a chain in an
Assembly.
This class is not visible outside this package.
(package private) int | delegateBlockSize()
|
void | init(Map attributes)- Initialises the
Transformer for operation with specific
characteristics.
|
(package private) void | initDelegate(Map attributes)
|
byte[] | lastUpdate()- Convenience method that calls the same method with three arguments.
|
(package private) byte[] | lastUpdateDelegate()
|
void | reset()- Resets the
Transformer for re-initialisation and use with
other characteristics.
|
(package private) void | resetDelegate()
|
byte[] | update(byte[] in, int offset, int length)- Processes a designated number of bytes from a given byte array.
|
(package private) byte[] | updateDelegate(byte[] in, int offset, int length)
|
currentBlockSize, delegateBlockSize, getCascadeTransformer, getDeflateTransformer, getPaddingTransformer, init, initDelegate, isPostProcessing, isPreProcessing, lastUpdate, lastUpdate, lastUpdate, lastUpdate, lastUpdateDelegate, reset, resetDelegate, setMode, update, update, update, updateDelegate |
LoopbackTransformer
(package private) LoopbackTransformer()
Trivial protected constructor.
init
public void init(Map attributes)
throws TransformerException Initialises the Transformer for operation with specific
characteristics.
- init in interface Transformer
attributes - a set of name-value pairs that describes the desired
future behaviour of this instance.
lastUpdate
public byte[] lastUpdate()
throws TransformerException Convenience method that calls the same method with three arguments. A
zero-long byte array is used.
- lastUpdate in interface Transformer
- the result of transformation.
reset
public void reset()
Resets the Transformer for re-initialisation and use with
other characteristics. This method always succeeds.
- reset in interface Transformer
update
public byte[] update(byte[] in,
int offset,
int length)
throws TransformerException Processes a designated number of bytes from a given byte array.
- update in interface Transformer
in - the input data bytes.offset - index of in from which to start considering
data.length - the count of bytes to process.
- the result of transformation.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.