org.jclouds.util.Utilsorg.jclouds.util.Strings2



Project jclouds/jclouds in file ...java.org.jclouds.aws.s3.xml.ListBucketHandler.java (2010-12-30)
@@ -33,7 +33,7 @@ import org.jclouds.aws.s3.domain.internal.ListBucketResponseImpl;
 import org.jclouds.crypto.CryptoStreams;
 import org.jclouds.date.DateService;
 import org.jclouds.http.functions.ParseSax;
-import org.jclouds.util.Utils;
+import org.jclouds.util.Strings2;
 import org.xml.sax.Attributes;
 
 import com.google.common.collect.Sets;
@@ -101,7 +101,7 @@ public class ListBucketHandler extends ParseSax.HandlerWithResult<ListBucketResp
          currentLastModified = dateParser.iso8601DateParse(currentText.toString().trim());
       } else if (qName.equals("ETag")) {
          currentETag = currentText.toString().trim();
-         currentMD5 = CryptoStreams.hex(Utils.replaceAll(currentETag, '"', ""));
+         currentMD5 = CryptoStreams.hex(Strings2.replaceAll(currentETag, '"', ""));
       } else if (qName.equals("Size")) {
          currentSize = new Long(currentText.toString().trim());
       } else if (qName.equals("Owner")) {
Project jclouds/jclouds in file ....jclouds.aws.CredentialsStoredInBlobStoreTest.java (2010-12-30)
@@ -36,7 +36,7 @@ import org.jclouds.compute.RunNodesException;
 import org.jclouds.compute.domain.NodeMetadata;
 import org.jclouds.domain.Credentials;
 import org.jclouds.rest.config.CredentialStoreModule;
-import org.jclouds.util.Utils;
+import org.jclouds.util.Strings2;
 import org.testng.annotations.BeforeTest;
 import org.testng.annotations.Test;
 
@@ -95,7 +95,7 @@ public class CredentialsStoredInBlobStoreTest {
       assertEquals(credentialsMap.size(), 10);
       for (Entry<String, InputStream> entry : credentialsMap.entrySet()) {
          Credentials credentials = computeContext.credentialStore().get(entry.getKey());
-         assertEquals(Utils.toStringAndClose(entry.getValue()), String.format(
+         assertEquals(Strings2.toStringAndClose(entry.getValue()), String.format(
                   "{\"identity\":\"%s\",\"credential\":\"%s\"}", credentials.identity, credentials.credential));
       }
    }
Project jclouds/jclouds in file ...s.azure.storage.AzureStoragePropertiesBuilder.java (2010-12-30)
@@ -28,7 +28,7 @@ import java.util.Properties;
 import java.util.regex.Pattern;
 
 import org.jclouds.PropertiesBuilder;
-import org.jclouds.util.Utils;
+import org.jclouds.util.Strings2;
 
 /**
  * Builds properties used in AzureBlob Connections
@@ -59,7 +59,7 @@ public class AzureStoragePropertiesBuilder extends PropertiesBuilder {
       String endpoint = properties.getProperty(PROPERTY_ENDPOINT);
       String identity = properties.getProperty(PROPERTY_IDENTITY);
 
-      properties.setProperty(PROPERTY_ENDPOINT, Utils.replaceAll(endpoint, IDENTITY_PATTERN,
+      properties.setProperty(PROPERTY_ENDPOINT, Strings2.replaceAll(endpoint, IDENTITY_PATTERN,
                identity));
       return super.build();
    }
Project jclouds/jclouds in file ...ma.binders.BindDriveDataToPlainTextStringTest.java (2010-12-30)
@@ -33,7 +33,7 @@ import org.jclouds.cloudsigma.domain.DriveData;
 import org.jclouds.cloudsigma.functions.BaseDriveToMap;
 import org.jclouds.cloudsigma.functions.DriveDataToMap;
 import org.jclouds.http.HttpRequest;
-import org.jclouds.util.Utils;
+import org.jclouds.util.Strings2;
 import org.testng.annotations.Test;
 
 import com.google.common.base.Function;
@@ -81,7 +81,7 @@ public class BindDriveDataToPlainTextStringTest {
       FN.bindToRequest(request, input);
       assertEquals(request.getPayload().getContentMetadata().getContentType(), MediaType.TEXT_PLAIN);
       assertEquals(request.getPayload().getRawContent(),
-            Utils.toStringAndClose(BindDriveDataToPlainTextStringTest.class.getResourceAsStream("/drive_data.txt")));
+            Strings2.toStringAndClose(BindDriveDataToPlainTextStringTest.class.getResourceAsStream("/drive_data.txt")));
 
    }
 }
\ No newline at end of file
Project jclouds/jclouds in file ...dsigma.binders.BindDriveToPlainTextStringTest.java (2010-12-30)
@@ -34,7 +34,7 @@ import org.jclouds.cloudsigma.domain.DriveData;
 import org.jclouds.cloudsigma.functions.BaseDriveToMap;
 import org.jclouds.cloudsigma.functions.DriveDataToMap;
 import org.jclouds.http.HttpRequest;
-import org.jclouds.util.Utils;
+import org.jclouds.util.Strings2;
 import org.testng.annotations.Test;
 
 import com.google.common.base.Function;
@@ -83,7 +83,7 @@ public class BindDriveToPlainTextStringTest {
       FN.bindToRequest(request, input);
       assertEquals(request.getPayload().getContentMetadata().getContentType(), MediaType.TEXT_PLAIN);
       assertEquals(request.getPayload().getRawContent(),
-            Utils.toStringAndClose(BindDriveToPlainTextStringTest.class
+            Strings2.toStringAndClose(BindDriveToPlainTextStringTest.class
                   .getResourceAsStream("/create_drive.txt")));
 
    }