public class ListBucketResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ListBucketResult.CommonPrefix
Common Prefixes list placeholder object.
|
static class |
ListBucketResult.Content
Object metadata class.
|
Constructor and Description |
---|
ListBucketResult()
Creates an
ListBucketResult . |
ListBucketResult(String bucketName,
List<URIStatus> children,
ListBucketOptions options)
Creates an
ListBucketResult . |
Modifier and Type | Method and Description |
---|---|
static String |
decodeToken(String token)
Decode a continuation token which is used in get Bucket.
|
static String |
encodeToken(String key)
Generate a continuation token which is used in get Bucket.
|
List<ListBucketResult.CommonPrefix> |
getCommonPrefixes() |
List<ListBucketResult.Content> |
getContents() |
String |
getContinuationToken() |
String |
getDelimiter() |
String |
getEncodingType() |
Integer |
getKeyCount() |
String |
getMarker() |
int |
getMaxKeys() |
String |
getName() |
String |
getNextContinuationToken() |
String |
getNextMarker() |
String |
getPrefix() |
String |
getStartAfter() |
boolean |
isTruncated() |
boolean |
isVersion2() |
public ListBucketResult()
ListBucketResult
.public ListBucketResult(String bucketName, List<URIStatus> children, ListBucketOptions options) throws S3Exception
ListBucketResult
.bucketName
- the bucket namechildren
- a list of URIStatus
, representing the objects and common prefixesoptions
- the list bucket optionsS3Exception
public boolean isVersion2()
public String getName()
public Integer getKeyCount()
public int getMaxKeys()
public boolean isTruncated()
public String getPrefix()
public String getDelimiter()
public String getEncodingType()
public String getMarker()
public String getNextMarker()
public String getContinuationToken()
public String getNextContinuationToken()
public String getStartAfter()
public List<ListBucketResult.Content> getContents()
public List<ListBucketResult.CommonPrefix> getCommonPrefixes()
public static String encodeToken(String key)
key
- used to encode to a tokenpublic static String decodeToken(String token) throws S3Exception
token
- used to decode to a keyS3Exception
Copyright © 2023. All Rights Reserved.