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.ServiceException
protected StorageBucket newBucket()
protected StorageObject newObject()
protected StorageOwner newOwner()
protected void parseXmlInputStream(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(DefaultHandler handler, InputStream inputStream) throws ServiceException
ServiceException
public XmlResponsesSaxParser.ListBucketHandler parseListBucketResponse(InputStream inputStream) throws ServiceException
inputStream
- XML data input stream.ServiceException
public XmlResponsesSaxParser.ListAllMyBucketsHandler parseListMyBucketsResponse(InputStream inputStream) throws ServiceException
inputStream
- XML data input stream.ServiceException
public AccessControlListHandler parseAccessControlListResponse(InputStream inputStream) throws ServiceException
inputStream
- XML data input stream.ServiceException
public AccessControlListHandler parseAccessControlListResponse(InputStream inputStream, AccessControlListHandler handler) throws ServiceException
inputStream
- XML data input stream.handler
- the instance of AccessControlListHandler to be used.ServiceException
public XmlResponsesSaxParser.BucketLoggingStatusHandler parseLoggingStatusResponse(InputStream inputStream) throws ServiceException
inputStream
- XML data input stream.ServiceException
public XmlResponsesSaxParser.BucketLoggingStatusHandler parseLoggingStatusResponse(InputStream inputStream, XmlResponsesSaxParser.BucketLoggingStatusHandler handler) throws ServiceException
inputStream
- XML data input stream.ServiceException
public String parseBucketLocationResponse(InputStream inputStream) throws ServiceException
ServiceException
public XmlResponsesSaxParser.CopyObjectResultHandler parseCopyObjectResponse(InputStream inputStream) throws ServiceException
ServiceException
public boolean parseRequestPaymentConfigurationResponse(InputStream inputStream) throws ServiceException
inputStream
- ServiceException
public S3BucketVersioningStatus parseVersioningConfigurationResponse(InputStream inputStream) throws ServiceException
inputStream
- ServiceException
public XmlResponsesSaxParser.ListVersionsResultsHandler parseListVersionsResponse(InputStream inputStream) throws ServiceException
ServiceException
public MultipartUpload parseInitiateMultipartUploadResult(InputStream inputStream) throws ServiceException
ServiceException
public MultipartPart parseMultipartUploadPartCopyResult(InputStream inputStream) throws ServiceException
ServiceException
public XmlResponsesSaxParser.ListMultipartUploadsResultHandler parseListMultipartUploadsResult(InputStream inputStream) throws ServiceException
ServiceException
public XmlResponsesSaxParser.ListMultipartPartsResultHandler parseListMultipartPartsResult(InputStream inputStream) throws ServiceException
ServiceException
public XmlResponsesSaxParser.CompleteMultipartUploadResultHandler parseCompleteMultipartUploadResult(InputStream inputStream) throws ServiceException
ServiceException
public WebsiteConfig parseWebsiteConfigurationResponse(InputStream inputStream) throws ServiceException
ServiceException
public WebsiteConfig parseWebsiteConfigurationResponse(InputStream inputStream, XmlResponsesSaxParser.WebsiteConfigurationHandler handler) throws ServiceException
ServiceException
public NotificationConfig parseNotificationConfigurationResponse(InputStream inputStream) throws ServiceException
ServiceException
public MultipleDeleteResult parseMultipleDeleteResponse(InputStream inputStream) throws ServiceException
ServiceException
public LifecycleConfig parseLifecycleConfigurationResponse(InputStream inputStream) throws ServiceException
ServiceException
Copyright © 2006–2018. All rights reserved.