Package org.jets3t.service
Class StorageObjectsChunk
- java.lang.Object
-
- org.jets3t.service.StorageObjectsChunk
-
- Direct Known Subclasses:
S3ObjectsChunk
public class StorageObjectsChunk extends Object
Stores a "chunk" of StorageObjects returned from a list command - this particular chunk may or may not include all the objects available in a bucket. This class contains an array of objects and a the last key name returned by a prior call to the methodStorageService.listObjectsChunked(String, String, String, long, String)
.- Author:
- James Murty
-
-
Constructor Summary
Constructors Constructor Description StorageObjectsChunk(String prefix, String delimiter, StorageObject[] objects, String[] commonPrefixes, String priorLastKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getCommonPrefixes()
String
getDelimiter()
StorageObject[]
getObjects()
String
getPrefix()
String
getPriorLastKey()
boolean
isListingComplete()
A convenience method to check whether a listing of objects is complete (true) or there are more objects available (false).
-
-
-
Constructor Detail
-
StorageObjectsChunk
public StorageObjectsChunk(String prefix, String delimiter, StorageObject[] objects, String[] commonPrefixes, String priorLastKey)
-
-
Method Detail
-
getObjects
public StorageObject[] getObjects()
- Returns:
- the objects in this chunk.
-
getCommonPrefixes
public String[] getCommonPrefixes()
- Returns:
- the common prefixes in this chunk.
-
getPriorLastKey
public String getPriorLastKey()
- Returns:
- the last key returned by the previous chunk if that chunk was incomplete, null otherwise.
-
getPrefix
public String getPrefix()
- Returns:
- the prefix applied when this object chunk was generated. If no prefix was applied, this method will return null.
-
getDelimiter
public String getDelimiter()
- Returns:
- the delimiter applied when this object chunk was generated. If no delimiter was applied, this method will return null.
-
isListingComplete
public boolean isListingComplete()
A convenience method to check whether a listing of objects is complete (true) or there are more objects available (false). Just a synonym for
.getPriorLastKey()
== null- Returns:
- true if the listing is complete and there are no more unlisted objects, false if follow-up requests will return more objects.
-
-