{
Log.info("\n");
return;
}
Access access = new Access();
/* Get the metadata for the given file */
GetObjectResult result = null;
/* Try a few times to get the object */
/* Put the file, We'll try a few times */
int attemptCount = 0;
while (attemptCount < MAX_S3_READWRITE_ATTEMPTS)
{
attemptCount++;
try
{
long startTime = System.currentTimeMillis();
AmazonS3_ServiceLocator locator = new AmazonS3_ServiceLocator();
AmazonS3SoapBindingStub binding = new AmazonS3SoapBindingStub(new URL(locator.getAmazonS3Address()), locator);
result = binding.getObject(getBucketName(),
key,
false,
true,
false,
access.getAccessKey(),
access.getAccessCalendar(),
access.generateSignature("GetObject"),
null);
long endTime = System.currentTimeMillis();