public List<S3Object> getObjects() throws IOException { List<S3Object> retVal = new ArrayList<S3Object>(); ListBucketResponse response = awsAuthConnection.listBucket(name, null, null, null, null); if (response != null) { for (Object be : response.getEntries()) { ListEntry le = (ListEntry) be; S3Object obj = S3Object.loadedFromServer(this, le.key); obj.setLastModified(le.lastModified); obj.setSize(le.size); retVal.add(obj); } } return retVal; }