public List < Bucket > listBuckets ( ) throws InvalidBucketNameException , NoSuchAlgorithmException , InsufficientDataException , IOException , InvalidKeyException , NoResponseException , XmlPullParserException , ErrorResponseException , InternalException { HttpResponse response = executeGet ( null , null , null , null ) ; ListAllMyBucketsResult result = new ListAllMyBucketsResult ( ) ; result . parseXml ( response . body ( ) . charStream ( ) ) ; response . body ( ) . close ( ) ; return result . buckets ( ) ; }
Returns all bucket information owned by the current user .