Package org.jets3t.service.impl.rest
Class XmlResponsesSaxParser.ListBucketHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jets3t.service.impl.rest.DefaultXmlHandler
org.jets3t.service.impl.rest.XmlResponsesSaxParser.ListBucketHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
XmlResponsesSaxParser
Handler for ListBucket response XML documents.
The document is parsed into
S3Object
s available via the getObjects()
method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
endElement
(String name, String elementText) String[]
If the listing is truncated this method will return the marker that should be used in subsequent bucket list calls to complete the listing.long
boolean
void
startElement
(String name) Methods inherited from class org.jets3t.service.impl.rest.DefaultXmlHandler
characters, endDocument, endElement, startDocument, startElement, startElement
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
ListBucketHandler
public ListBucketHandler()
-
-
Method Details
-
getMarkerForNextListing
If the listing is truncated this method will return the marker that should be used in subsequent bucket list calls to complete the listing.- Returns:
- null if the listing is not truncated, otherwise the next marker if it's available or the last object key seen if the next marker isn't available.
-
isListingTruncated
public boolean isListingTruncated()- Returns:
- true if the listing document was truncated, and therefore only contained a subset of the available S3 objects.
-
getObjects
- Returns:
- the S3 objects contained in the listing.
-
getCommonPrefixes
-
getRequestPrefix
-
getRequestMarker
-
getNextMarker
-
getRequestMaxKeys
public long getRequestMaxKeys() -
startElement
- Overrides:
startElement
in classDefaultXmlHandler
-
endElement
- Overrides:
endElement
in classDefaultXmlHandler
-