目录

ListObjectsResult

Class Info

public class ListObjectsResult extends HeaderResponse

枚举文件的请求结果。

Method Summary

Qualifier and Type

Method Name and Description

List<String>

getFileList()

获取待查询的文件列表。

List<String>

getDirList()

获取待查询的目录列表。

String

getNextMarker()

获取待查询的下一次起始位置。

String

getBucketName()

获取存储实例名称。

int

getMaxKeys()

获取单次列举最多返回的文件个数。

String

getDelimiter()

获取文件的分组标识符。

boolean

isTruncated()

表明是否本次返回的结果列表被截断。

void

setFileList(List<String> filesList)

设置待查询的文件列表。

void

setDirList(List<String> dirsList)

设置待查询的目录列表。

void

setCommonPrefixes(List<String> commonPrefixes)

设置待查询的文件前缀。

void

setNextMarker(String nextMarker)

设置待查询的下一次起始位置。

void

setBucketName(String bucketName)

设置存储实例名称。

void

setPrefix(String prefix)

设置文件前缀。

void

setMaxKeys(String maxKeys)

设置单次列举最多返回的文件个数。

void

setDelimiter(String delimiter)

设置文件的分组标识符。

void

setTruncated(boolean truncated)

设置响应结果的标识。

Methods

[h2]getFileList

Method

public List<String> getFileList()

获取待查询的文件列表。

Return

Type

Description

List<String>

文件列表。

[h2]getDirList

Method

public List<String> getDirList()

获取待查询的目录列表。

Return

Type

Description

List<String>

目录列表。

[h2]getNextMarker

Method

public String getNextMarker()

获取待查询的下一次起始位置。

Return

Type

Description

String

查询的下一次起始位置。

[h2]getBucketName

Method

public String getBucketName()

获取存储实例名称。

Return

Type

Description

String

存储实例名称。

[h2]getMaxKeys

Method

public int getMaxKeys()

获取单次列举最多返回的文件个数。

Return

Type

Description

int

单次列举最多返回的文件个数。

[h2]getDelimiter

Method

public String getDelimiter()

获取文件的分组标识符。

Return

Type

Description

String

文件的分组标识符。

[h2]isTruncated

Method

public boolean isTruncated()

表明是否本次返回的结果列表被截断。

Return

Type

Description

String

结果列表是否被截断的标志。

  • true : 表示本次没有返回全部结果。
  • false : 表示本次已经返回了全部结果。

[h2]setFileList

Method

public void setFileList(List<String> filesList)

设置待查询的文件列表。

Parameters

Name

Description

filesList

文件列表。

[h2]setDirList

Method

public void setDirList(List<String> dirsList)

设置待查询的目录列表。

Parameters

Name

Description

dirsList

目录列表。

[h2]setCommonPrefixes

Method

public void setCommonPrefixes(List<String> commonPrefixes)

设置待查询的文件前缀。

Parameters

Name

Description

commonPrefixes

查询的文件前缀。

[h2]setNextMarker

Method

public void setNextMarker(String nextMarker)

设置待查询的下一次起始位置。

Parameters

Name

Description

nextMarker

查询的下一次起始位置。

[h2]setBucketName

Method

public void setBucketName(String bucketName)

设置存储实例名称。

Parameters

Name

Description

bucketName

存储实例名称。

[h2]setPrefix

Method

public void setPrefix(String prefix)

设置文件前缀。

Parameters

Name

Description

prefix

文件前缀。

[h2]setMaxKeys

Method

public void setMaxKeys(String maxKeys)

设置单次列举最多返回的文件个数。

Parameters

Name

Description

maxKeys

单次列举最多返回的文件个数。

[h2]setDelimiter

Method

public void setDelimiter(String delimiter)

设置文件的分组标识符。

Parameters

Name

Description

delimiter

文件的分组标识符。

[h2]setTruncated

Method

public void setTruncated(boolean truncated)

设置响应结果的标识。

Parameters

Name

Description

truncated

响应结果的标识。