|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lava.security.IdentityTextTransform
Identity transform.
Details: This class is the identity text transform, or a text transform which produces an output symbol sequence equivalent to the input symbol sequence it consumes. As with any implementation of ITextTransform
, the input and output array types may be different. Regardless of the array types, IdentityTextTransform
converts the input symbols into symbols that can be stored in the destination array, provided that the destination array's type is wide enough for the symbol size.
This class implements the ITextTransform
API. See the ITextTransform documentation
for more information.
An additional feature of this transform is that if any of the padding bits in the input block are not 0, they will be zeroed in the output. (Note that this behavior is provided as a convenience and is not required by the ITextTransform
interface. In many ways, this "extra feature" makes this implementation similar to the ArrayCaster
classes in package lava.array
.)
Constructor Summary | |
IdentityTextTransform(int width)
Sets symbol width. |
Method Summary | |
void |
beginTransform()
No operation. |
int |
completeTransform(java.lang.Object ignored)
No operation. |
int |
continueTransform(java.lang.Object input,
java.lang.Object output,
int len)
Converts symbols. |
int |
getTransformInputWidth()
Returns symbol width. |
int |
getTransformOutputWidth()
Returns symbol width. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public IdentityTextTransform(int width)
Details: This constructor initializes an identity transform for symbols of the given width (width).
width
- the symbol widthMethod Detail |
public void beginTransform()
Details: beginTransform
does absolutely nothing in this implementation.
public int continueTransform(java.lang.Object input, java.lang.Object output, int len)
Details: continueTransform
performs the identity transform described in the introduction to this class.
Overflow symbols are discarded. (See overflow discussion in ITextTransform
.)
input
- the input textoutput
- the output textpublic final int completeTransform(java.lang.Object ignored)
Details: completeTransform
does absolutely nothing in this implementation.
ignored
- ignoredpublic final int getTransformInputWidth()
public final int getTransformOutputWidth()
|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |