|
Liferay 6.2.0-ce-m5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.kernel.io.delta.RollingChecksum
public class RollingChecksum
| Constructor Summary | |
|---|---|
RollingChecksum(ReadableByteChannel readableByteChannel,
int blockLength)
|
|
| Method Summary | |
|---|---|
int |
currentBlockLength()
|
protected void |
generateWeakChecksum()
|
byte |
getFirstByte()
Returns the first byte of data in the current block. |
int |
getPosition()
Returns the position of the start of the current block in the file. |
boolean |
hasNext()
|
void |
nextBlock()
|
void |
nextByte()
|
byte[] |
strongChecksum()
Returns the strong checksum of the current block. |
int |
weakChecksum()
Returns the weak checksum of the current block. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RollingChecksum(ReadableByteChannel readableByteChannel,
int blockLength)
throws IOException
IOException| Method Detail |
|---|
public int currentBlockLength()
public byte getFirstByte()
public int getPosition()
public boolean hasNext()
throws IOException
IOException
public void nextBlock()
throws IOException
IOException
public void nextByte()
throws IOException
IOExceptionpublic byte[] strongChecksum()
public int weakChecksum()
protected void generateWeakChecksum()
throws IOException
IOException
|
Liferay 6.2.0-ce-m5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||