Writablepublic class EtagChecksum extends FileChecksum
| Constructor | Description |
|---|---|
EtagChecksum() |
Create with an empty etag.
|
EtagChecksum(java.lang.String eTag) |
Create with a string etag.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAlgorithmName() |
The checksum algorithm name.
|
byte[] |
getBytes() |
The value of the checksum in bytes.
|
int |
getLength() |
The length of the checksum in bytes.
|
void |
readFields(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
java.lang.String |
toString() |
|
void |
write(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
equals, getChecksumOpt, hashCodepublic EtagChecksum()
public EtagChecksum(java.lang.String eTag)
eTag - etagpublic java.lang.String getAlgorithmName()
FileChecksumgetAlgorithmName in class FileChecksumpublic int getLength()
FileChecksumgetLength in class FileChecksumpublic byte[] getBytes()
FileChecksumgetBytes in class FileChecksumpublic void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.out - DataOuput to serialize this object into.java.io.IOException - any other problem for write.public void readFields(java.io.DataInput in)
throws java.io.IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deseriablize this object from.java.io.IOException - any other problem for readFields.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.