org.jets3t.service
Class S3ObjectsChunk

java.lang.Object
  extended byorg.jets3t.service.S3ObjectsChunk

public class S3ObjectsChunk
extends java.lang.Object

Stores a "chunk" of S3Objects 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 S3objects and a the last key name returned by a prior call to the method S3Service.listObjectsChunked(String, String, String, long, String).


Constructor Summary
S3ObjectsChunk(java.lang.String prefix, java.lang.String delimiter, S3Object[] objects, java.lang.String[] commonPrefixes, java.lang.String priorLastKey)
           
 
Method Summary
 java.lang.String[] getCommonPrefixes()
           
 java.lang.String getDelimiter()
           
 S3Object[] getObjects()
           
 java.lang.String getPrefix()
           
 java.lang.String getPriorLastKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

S3ObjectsChunk

public S3ObjectsChunk(java.lang.String prefix,
                      java.lang.String delimiter,
                      S3Object[] objects,
                      java.lang.String[] commonPrefixes,
                      java.lang.String priorLastKey)
Method Detail

getObjects

public S3Object[] getObjects()
Returns:
the objects in this chunk.

getCommonPrefixes

public java.lang.String[] getCommonPrefixes()
Returns:
the common prefixes in this chunk.

getPriorLastKey

public java.lang.String getPriorLastKey()
Returns:
the last key returned by the previous chunk if that chunk was incomplete, null otherwise.

getPrefix

public java.lang.String getPrefix()
Returns:
the prefix applied when this object chunk was generated. If no prefix was applied, this method will return null.

getDelimiter

public java.lang.String getDelimiter()
Returns:
the delimiter applied when this object chunk was generated. If no delimiter was applied, this method will return null.