StreamMd5AndLength Class

  • java.lang.Object
    • com.microsoft.azure.storage.core.StreamMd5AndLength

public class StreamMd5AndLength

RESERVED FOR INTERNAL USE. Represents a stream descriptor that contains the stream size and MD5 hash.

Method Summary

Modifier and Type Method and Description
long getCurrentOperationByteCount()
MessageDigest getDigest()
long getLength()
String getMd5()
void setCurrentOperationByteCount(final long currentOperationByteCount)
void setDigest(MessageDigest digest)

Sets the MessageDigest, used to calculate MD5

void setLength(final long length)
void setMd5(final String md5)

Method Details

getCurrentOperationByteCount

public long getCurrentOperationByteCount()

Returns:

the currentOperationByteCount

getDigest

public MessageDigest getDigest()

Returns:

the intermediateMD5

getLength

public long getLength()

Returns:

the length

getMd5

public String getMd5()

Returns:

the md5

setCurrentOperationByteCount

public void setCurrentOperationByteCount(final long currentOperationByteCount)

Parameters:

currentOperationByteCount - the currentOperationByteCount to set

setDigest

public void setDigest(MessageDigest digest)

Sets the MessageDigest, used to calculate MD5

Parameters:

digest - the digest to set

setLength

public void setLength(final long length)

Parameters:

length - the length to set

setMd5

public void setMd5(final String md5)

Parameters:

md5 - the md5 to set

Applies to