public class XmlResponsesSaxParser extends Object
| Constructor and Description |
|---|
XmlResponsesSaxParser(Jets3tProperties properties,
boolean returnGoogleStorageObjects)
Constructs the XML SAX parser.
|
public XmlResponsesSaxParser(Jets3tProperties properties, boolean returnGoogleStorageObjects) throws ServiceException
properties - the JetS3t properties that will be applied when parsing XML documents.ServiceExceptionprotected StorageBucket newBucket()
protected StorageObject newObject()
protected StorageOwner newOwner()
protected void parseXmlInputStream(org.xml.sax.helpers.DefaultHandler handler, InputStream inputStream) throws ServiceException
handler - the handler for the XML documentinputStream - an input stream containing the XML document to parseServiceException - any parsing, IO or other exceptions are wrapped in an ServiceException.protected InputStream sanitizeXmlDocument(org.xml.sax.helpers.DefaultHandler handler, InputStream inputStream) throws ServiceException
ServiceExceptionpublic XmlResponsesSaxParser.ListBucketHandler parseListBucketResponse(InputStream inputStream) throws ServiceException
inputStream - XML data input stream.ServiceExceptionpublic XmlResponsesSaxParser.ListAllMyBucketsHandler parseListMyBucketsResponse(InputStream inputStream) throws ServiceException
inputStream - XML data input stream.ServiceExceptionpublic AccessControlListHandler parseAccessControlListResponse(InputStream inputStream) throws ServiceException
inputStream - XML data input stream.ServiceExceptionpublic AccessControlListHandler parseAccessControlListResponse(InputStream inputStream, AccessControlListHandler handler) throws ServiceException
inputStream - XML data input stream.handler - the instance of AccessControlListHandler to be used.ServiceExceptionpublic XmlResponsesSaxParser.BucketLoggingStatusHandler parseLoggingStatusResponse(InputStream inputStream) throws ServiceException
inputStream - XML data input stream.ServiceExceptionpublic XmlResponsesSaxParser.BucketLoggingStatusHandler parseLoggingStatusResponse(InputStream inputStream, XmlResponsesSaxParser.BucketLoggingStatusHandler handler) throws ServiceException
inputStream - XML data input stream.ServiceExceptionpublic String parseBucketLocationResponse(InputStream inputStream) throws ServiceException
ServiceExceptionpublic XmlResponsesSaxParser.CopyObjectResultHandler parseCopyObjectResponse(InputStream inputStream) throws ServiceException
ServiceExceptionpublic boolean parseRequestPaymentConfigurationResponse(InputStream inputStream) throws ServiceException
inputStream - ServiceExceptionpublic S3BucketVersioningStatus parseVersioningConfigurationResponse(InputStream inputStream) throws ServiceException
inputStream - ServiceExceptionpublic XmlResponsesSaxParser.ListVersionsResultsHandler parseListVersionsResponse(InputStream inputStream) throws ServiceException
ServiceExceptionpublic MultipartUpload parseInitiateMultipartUploadResult(InputStream inputStream) throws ServiceException
ServiceExceptionpublic MultipartPart parseMultipartUploadPartCopyResult(InputStream inputStream) throws ServiceException
ServiceExceptionpublic XmlResponsesSaxParser.ListMultipartUploadsResultHandler parseListMultipartUploadsResult(InputStream inputStream) throws ServiceException
ServiceExceptionpublic XmlResponsesSaxParser.ListMultipartPartsResultHandler parseListMultipartPartsResult(InputStream inputStream) throws ServiceException
ServiceExceptionpublic XmlResponsesSaxParser.CompleteMultipartUploadResultHandler parseCompleteMultipartUploadResult(InputStream inputStream) throws ServiceException
ServiceExceptionpublic WebsiteConfig parseWebsiteConfigurationResponse(InputStream inputStream) throws ServiceException
ServiceExceptionpublic WebsiteConfig parseWebsiteConfigurationResponse(InputStream inputStream, XmlResponsesSaxParser.WebsiteConfigurationHandler handler) throws ServiceException
ServiceExceptionpublic NotificationConfig parseNotificationConfigurationResponse(InputStream inputStream) throws ServiceException
ServiceExceptionpublic MultipleDeleteResult parseMultipleDeleteResponse(InputStream inputStream) throws ServiceException
ServiceExceptionpublic LifecycleConfig parseLifecycleConfigurationResponse(InputStream inputStream) throws ServiceException
ServiceExceptionCopyright © 2006–2015. All rights reserved.