|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.util.CRC
public class CRC
Standalone class to provide crc calculations.
Constructor Summary | |
---|---|
CRC()
|
Method Summary | |
---|---|
static short |
crc(byte[] buf,
int offset,
int len)
Return the CRC of the specified part of a byte array. |
static short |
crc(InputStream stream,
int flashedByteCount)
Return the CRC value of the specified number of bytes from an InputStream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRC()
Method Detail |
---|
public static short crc(byte[] buf, int offset, int len)
buf
- source of bytesoffset
- offset in buf to first bytelen
- number of bytes to include in calculation
public static short crc(InputStream stream, int flashedByteCount) throws IOException
stream
- to read bytes fromflashedByteCount
- number of bytes to read
IOException
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |