org.jclouds.openstack.swift.utils
Class ETagUtils

java.lang.Object
  extended by org.jclouds.openstack.swift.utils.ETagUtils

public class ETagUtils
extends Object

Author:
Francis Devereux

Constructor Summary
ETagUtils()
           
 
Method Summary
static byte[] convertHexETagToByteArray(String hexETag)
          Converts the ETag of an OpenStack object to a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ETagUtils

public ETagUtils()
Method Detail

convertHexETagToByteArray

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-2013 The Apache Software Foundation. All Rights Reserved.