public class MD5Digester extends Object
| Constructor and Description |
|---|
MD5Digester() |
MD5Digester(int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
String |
digestAs32ByteHex()
Return the finalised digest as a 32 byte hex string.
|
byte[] |
digestAsBytes() |
String |
digestFileAs32ByteHex(File file)
Return the results of digesting an arbitrary file with this digester.
|
String |
digestFileAs32ByteHex(File file,
Charset charset)
Return the results of digesting an arbitrary file with this digester.
|
String |
digestFileAs32ByteHex(File file,
Charset charset,
boolean doesNeedConvertLineEndings)
Return the results of digesting an arbitrary file with this digester.
|
String |
digestFileAs32ByteHex(File file,
Charset charset,
boolean isRequireLineEndingConvert,
ClientLineEnding clientLineEnding)
Return the results of digesting an arbitrary file with this digester and
a specific client line ending.
|
void |
reset() |
void |
update(byte[] bytes) |
void |
update(byte[] bytes,
int off,
int len) |
void |
update(ByteBuffer byteBuf)
Deprecated.
|
void |
update(String str) |
public MD5Digester()
throws P4JavaError
P4JavaErrorpublic MD5Digester(@Nonnull int bufferSize)
public byte[] digestAsBytes()
@Nullable public String digestFileAs32ByteHex(@Nonnull File file)
Returns null if it can't read or digest the file for whatever reason; otherwise the finalized digest is returned as a 32 byte hex string.
public void reset()
public void update(byte[] bytes,
int off,
int len)
public String digestAs32ByteHex()
@Nullable public String digestFileAs32ByteHex(@Nonnull File file, @Nullable Charset charset)
Returns null if it can't read or digest the file for whatever reason; otherwise the finalized digest is returned as a 32 byte hex string.
@Nullable public String digestFileAs32ByteHex(@Nonnull File file, @Nullable Charset charset, boolean doesNeedConvertLineEndings)
Returns null if it can't read or digest the file for whatever reason; otherwise the finalized digest is returned as a 32 byte hex string.
@Nullable public String digestFileAs32ByteHex(@Nonnull File file, @Nullable Charset charset, boolean isRequireLineEndingConvert, @Nullable ClientLineEnding clientLineEnding)
Returns null if it can't read or digest the file for whatever reason; otherwise the finalized digest is returned as a 32 byte hex string.
public void update(String str)
public void update(byte[] bytes)
@Deprecated public void update(ByteBuffer byteBuf)
Copyright © 2017 Perforce Software. All Rights Reserved.