|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.crypto.assembly.Transformer gnu.crypto.assembly.LoopbackTransformer
A trivial Transformer
to allow closing a chain in an Assembly
.
This class is not visible outside this package.
Field Summary |
Fields inherited from class gnu.crypto.assembly.Transformer |
DIRECTION, inBuffer, mode, outBuffer, tail, wired |
Constructor Summary | |
(package private) |
LoopbackTransformer()
Trivial protected constructor. |
Method Summary | |
(package private) int |
delegateBlockSize()
|
void |
init(java.util.Map attributes)
Initialises the Transformer for operation with specific
characteristics. |
(package private) void |
initDelegate(java.util.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)
|
Methods inherited from class gnu.crypto.assembly.Transformer |
currentBlockSize, getCascadeTransformer, getDeflateTransformer, getPaddingTransformer, isPostProcessing, isPreProcessing, lastUpdate, lastUpdate, lastUpdate, setMode, update, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
LoopbackTransformer()
Method Detail |
public void init(java.util.Map attributes) throws TransformerException
Transformer
Transformer
for operation with specific
characteristics.
init
in class Transformer
attributes
- a set of name-value pairs that describes the desired
future behaviour of this instance.
TransformerException
public void reset()
Transformer
Transformer
for re-initialisation and use with
other characteristics. This method always succeeds.
reset
in class Transformer
public byte[] update(byte[] in, int offset, int length) throws TransformerException
Transformer
update
in class Transformer
in
- the input data bytes.offset
- index of in
from which to start considering
data.length
- the count of bytes to process.
TransformerException
- if a transformation-related exception occurs
during the operation.public byte[] lastUpdate() throws TransformerException
Transformer
lastUpdate
in class Transformer
TransformerException
- if a transformation-related exception occurs
during the operation.Transformer.lastUpdate(byte[], int, int)
void initDelegate(java.util.Map attributes) throws TransformerException
initDelegate
in class Transformer
TransformerException
int delegateBlockSize()
delegateBlockSize
in class Transformer
void resetDelegate()
resetDelegate
in class Transformer
byte[] updateDelegate(byte[] in, int offset, int length) throws TransformerException
updateDelegate
in class Transformer
TransformerException
byte[] lastUpdateDelegate() throws TransformerException
lastUpdateDelegate
in class Transformer
TransformerException
|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |