Class XmlResponsesSaxParser.BucketLocationHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.BucketLocationHandler
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
- XmlResponsesSaxParser
public static class XmlResponsesSaxParser.BucketLocationHandler extends DefaultHandler
Handler for CreateBucketConfiguration response XML documents for a bucket. The document is parsed into a String representing the bucket's location, available via thegetLocation()
method.
-
-
Constructor Summary
Constructors Constructor Description BucketLocationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
atTopLevel()
void
characters(char[] arg0, int arg1, int arg2)
protected void
doEndElement(String uri, String name, String qName)
protected void
doStartElement(String uri, String name, String qName, Attributes attrs)
void
endElement(String arg0, String arg1, String arg2)
String
getLocation()
protected String
getText()
protected boolean
in(String... arg0)
void
startElement(String arg0, String arg1, String arg2, Attributes arg3)
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
getLocation
public String getLocation()
- Returns:
- the bucket's location.
-
doStartElement
protected void doStartElement(String uri, String name, String qName, Attributes attrs)
-
startElement
public final void startElement(String arg0, String arg1, String arg2, Attributes arg3)
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
endElement
public final void endElement(String arg0, String arg1, String arg2)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
characters
public final void characters(char[] arg0, int arg1, int arg2)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
getText
protected final String getText()
-
atTopLevel
protected final boolean atTopLevel()
-
in
protected final boolean in(String... arg0)
-
-