public class S3 extends Object
| Constructor and Description |
|---|
S3() |
| Modifier and Type | Method and Description |
|---|---|
static PagedIterable<ObjectMetadata> |
listBucket(S3Client s3Client,
String bucket,
ListBucketOptions options)
List all objects in a bucket, in a way that manages pagination, based on
the criteria in the
ListBucketOptions passed in. |
public static PagedIterable<ObjectMetadata> listBucket(S3Client s3Client, String bucket, ListBucketOptions options)
ListBucketOptions passed in.
ex.
continueAfterEachPage = listBucket(s3Client, bucket, options).concat();
s3Client - the S3Client to use for the requestsbucket - the bucket to listoptions - the ListBucketOptions describing the listBucket requestsPagedIterableCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.