|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.sip.SipChecksum
The SipChecksum class creates a checksum according to the algorithm specified in the Error Handling section of the 3M Standard Interchange Protocol (Document Revision 2.0, Updated Nov. 11, 1997)
The actual checksum is computed by the update((byte[] b, int off, int len)method, and the String to insert into the SIP message is retrieved using the toHexString() method.
Field Summary | |
protected short |
value
|
Constructor Summary | |
SipChecksum()
Constructs an SipChecksum object |
Method Summary | |
long |
getValue()
Returns the current checksum value. |
static void |
main(String[] args)
Tests the SipChecksum class |
void |
reset()
Resets the checksum to its initial value. |
String |
toHexString()
Returns the hex string representation of the checksum value |
void |
update(byte[] b,
int off,
int len)
Updates the current checksum with the specified array of bytes. |
void |
update(int b)
Updates the current checksum with the specified byte. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected short value
Constructor Detail |
public SipChecksum()
Method Detail |
public long getValue()
public void reset()
public void update(byte[] b, int off, int len)
b
- a byte arrayoff
- where to start in the arraylen
- how much of the array to usepublic void update(int b)
public String toHexString()
public static void main(String[] args)
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |