|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.servingxml.components.flatfile.layout.SizeSignatureMethod
public class SizeSignatureMethod
| Constructor Summary | |
|---|---|
SizeSignatureMethod()
|
|
| Method Summary | |
|---|---|
void |
data(byte[] bytes,
int start,
int length)
Receive notification of raw data from body of flat file. |
Value |
getSignature()
Gets the value of the signature calculated in the data method |
void |
validate(Value expectedValue)
Receive notification to validate the computed file signature against its expected value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SizeSignatureMethod()
| Method Detail |
|---|
public void data(byte[] bytes,
int start,
int length)
SignatureMethodData may be received in a single chunk or in multiple chunks.
data in interface SignatureMethodbytes - the bytes from the body of the flat file.start - the start position in the arraylength - the number of characters to read from the arraypublic void validate(Value expectedValue)
SignatureMethod
validate in interface SignatureMethodexpectedValue - the expected value of the file signaturepublic Value getSignature()
SignatureMethoddata method
getSignature in interface SignatureMethod
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||