|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.plumtree.openfoundation.util.XPCRC
public class XPCRC
Implements equivalent CRC algorithms as found in C++ versions in IPTUtility_CRC.
| Nested Class Summary | |
|---|---|
static class |
XPCRC.XPCRCValue
Simple CRC data class representing a 64-bit CRC value. |
| Constructor Summary | |
|---|---|
XPCRC()
|
|
| Method Summary | |
|---|---|
static int |
GenerateCRC32(java.lang.String inputString)
Calculates the 32-bit CRC from a String. |
static XPCRC.XPCRCValue |
GenerateCRC64(java.lang.String inputString)
Calculates the 64-bit CRC from a String. |
static int |
GenerateFileCRC32(java.lang.String filePath)
Calculates the 32-bit CRC from a file-based binary stream. |
static XPCRC.XPCRCValue |
GenerateFileCRC64(java.lang.String filePath)
Calculates the 64-bit CRC from a file-based binary stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XPCRC()
| Method Detail |
|---|
public static XPCRC.XPCRCValue GenerateFileCRC64(java.lang.String filePath)
filePath - a binary file stream.
public static int GenerateFileCRC32(java.lang.String filePath)
filePath - a binary file stream.
public static XPCRC.XPCRCValue GenerateCRC64(java.lang.String inputString)
inputString - String value for which CRC is generated.
public static int GenerateCRC32(java.lang.String inputString)
inputString - String input to be converted to CRC.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||