public class ETagUtils extends Object
Constructor and Description |
---|
ETagUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
convertHexETagToByteArray(String hexETag)
Converts the ETag of an OpenStack object to a byte array.
|
public static byte[] convertHexETagToByteArray(String hexETag)
Converts the ETag of an OpenStack object to a byte array.
Not applicable to all ETags, only those of OpenStack objects. According to the HTTP spec an eTag can be any string, but the OpenStack Object Storage Administration Guide says that the ETag of an OpenStack object will be an MD5 sum (and MD5 sums are conventionally represented as hex strings). This method only accepts hex strings as input, not arbitrary strings.
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.