public class XmlResponsesSaxParser
extends java.lang.Object
Constructor and Description |
---|
XmlResponsesSaxParser(Jets3tProperties properties,
boolean returnGoogleStorageObjects)
Constructs the XML SAX parser.
|
Modifier and Type | Method and Description |
---|---|
protected StorageBucket |
newBucket() |
protected StorageObject |
newObject() |
protected StorageOwner |
newOwner() |
AccessControlListHandler |
parseAccessControlListResponse(java.io.InputStream inputStream)
Parses an AccessControlListHandler response XML document from an input stream.
|
AccessControlListHandler |
parseAccessControlListResponse(java.io.InputStream inputStream,
AccessControlListHandler handler)
Parses an AccessControlListHandler response XML document from an input stream.
|
java.lang.String |
parseBucketLocationResponse(java.io.InputStream inputStream) |
XmlResponsesSaxParser.CompleteMultipartUploadResultHandler |
parseCompleteMultipartUploadResult(java.io.InputStream inputStream) |
XmlResponsesSaxParser.CopyObjectResultHandler |
parseCopyObjectResponse(java.io.InputStream inputStream) |
MultipartUpload |
parseInitiateMultipartUploadResult(java.io.InputStream inputStream) |
LifecycleConfig |
parseLifecycleConfigurationResponse(java.io.InputStream inputStream) |
XmlResponsesSaxParser.ListBucketHandler |
parseListBucketResponse(java.io.InputStream inputStream)
Parses a ListBucket response XML document from an input stream.
|
XmlResponsesSaxParser.ListMultipartPartsResultHandler |
parseListMultipartPartsResult(java.io.InputStream inputStream) |
XmlResponsesSaxParser.ListMultipartUploadsResultHandler |
parseListMultipartUploadsResult(java.io.InputStream inputStream) |
XmlResponsesSaxParser.ListAllMyBucketsHandler |
parseListMyBucketsResponse(java.io.InputStream inputStream)
Parses a ListAllMyBuckets response XML document from an input stream.
|
XmlResponsesSaxParser.ListVersionsResultsHandler |
parseListVersionsResponse(java.io.InputStream inputStream) |
XmlResponsesSaxParser.BucketLoggingStatusHandler |
parseLoggingStatusResponse(java.io.InputStream inputStream)
Parses a LoggingStatus response XML document for a bucket from an input stream.
|
XmlResponsesSaxParser.BucketLoggingStatusHandler |
parseLoggingStatusResponse(java.io.InputStream inputStream,
XmlResponsesSaxParser.BucketLoggingStatusHandler handler)
Parses a LoggingStatus response XML document for a bucket from an input stream.
|
MultipartPart |
parseMultipartUploadPartCopyResult(java.io.InputStream inputStream) |
MultipleDeleteResult |
parseMultipleDeleteResponse(java.io.InputStream inputStream) |
NotificationConfig |
parseNotificationConfigurationResponse(java.io.InputStream inputStream) |
boolean |
parseRequestPaymentConfigurationResponse(java.io.InputStream inputStream) |
S3BucketVersioningStatus |
parseVersioningConfigurationResponse(java.io.InputStream inputStream) |
WebsiteConfig |
parseWebsiteConfigurationResponse(java.io.InputStream inputStream) |
WebsiteConfig |
parseWebsiteConfigurationResponse(java.io.InputStream inputStream,
XmlResponsesSaxParser.WebsiteConfigurationHandler handler) |
protected void |
parseXmlInputStream(org.xml.sax.helpers.DefaultHandler handler,
java.io.InputStream inputStream)
Parses an XML document from an input stream using a document handler.
|
protected java.io.InputStream |
sanitizeXmlDocument(org.xml.sax.helpers.DefaultHandler handler,
java.io.InputStream inputStream) |
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(org.xml.sax.helpers.DefaultHandler handler, java.io.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 java.io.InputStream sanitizeXmlDocument(org.xml.sax.helpers.DefaultHandler handler, java.io.InputStream inputStream) throws ServiceException
ServiceException
public XmlResponsesSaxParser.ListBucketHandler parseListBucketResponse(java.io.InputStream inputStream) throws ServiceException
inputStream
- XML data input stream.ServiceException
public XmlResponsesSaxParser.ListAllMyBucketsHandler parseListMyBucketsResponse(java.io.InputStream inputStream) throws ServiceException
inputStream
- XML data input stream.ServiceException
public AccessControlListHandler parseAccessControlListResponse(java.io.InputStream inputStream) throws ServiceException
inputStream
- XML data input stream.ServiceException
public AccessControlListHandler parseAccessControlListResponse(java.io.InputStream inputStream, AccessControlListHandler handler) throws ServiceException
inputStream
- XML data input stream.handler
- the instance of AccessControlListHandler to be used.ServiceException
public XmlResponsesSaxParser.BucketLoggingStatusHandler parseLoggingStatusResponse(java.io.InputStream inputStream) throws ServiceException
inputStream
- XML data input stream.ServiceException
public XmlResponsesSaxParser.BucketLoggingStatusHandler parseLoggingStatusResponse(java.io.InputStream inputStream, XmlResponsesSaxParser.BucketLoggingStatusHandler handler) throws ServiceException
inputStream
- XML data input stream.ServiceException
public java.lang.String parseBucketLocationResponse(java.io.InputStream inputStream) throws ServiceException
ServiceException
public XmlResponsesSaxParser.CopyObjectResultHandler parseCopyObjectResponse(java.io.InputStream inputStream) throws ServiceException
ServiceException
public boolean parseRequestPaymentConfigurationResponse(java.io.InputStream inputStream) throws ServiceException
inputStream
- ServiceException
public S3BucketVersioningStatus parseVersioningConfigurationResponse(java.io.InputStream inputStream) throws ServiceException
inputStream
- ServiceException
public XmlResponsesSaxParser.ListVersionsResultsHandler parseListVersionsResponse(java.io.InputStream inputStream) throws ServiceException
ServiceException
public MultipartUpload parseInitiateMultipartUploadResult(java.io.InputStream inputStream) throws ServiceException
ServiceException
public MultipartPart parseMultipartUploadPartCopyResult(java.io.InputStream inputStream) throws ServiceException
ServiceException
public XmlResponsesSaxParser.ListMultipartUploadsResultHandler parseListMultipartUploadsResult(java.io.InputStream inputStream) throws ServiceException
ServiceException
public XmlResponsesSaxParser.ListMultipartPartsResultHandler parseListMultipartPartsResult(java.io.InputStream inputStream) throws ServiceException
ServiceException
public XmlResponsesSaxParser.CompleteMultipartUploadResultHandler parseCompleteMultipartUploadResult(java.io.InputStream inputStream) throws ServiceException
ServiceException
public WebsiteConfig parseWebsiteConfigurationResponse(java.io.InputStream inputStream) throws ServiceException
ServiceException
public WebsiteConfig parseWebsiteConfigurationResponse(java.io.InputStream inputStream, XmlResponsesSaxParser.WebsiteConfigurationHandler handler) throws ServiceException
ServiceException
public NotificationConfig parseNotificationConfigurationResponse(java.io.InputStream inputStream) throws ServiceException
ServiceException
public MultipleDeleteResult parseMultipleDeleteResponse(java.io.InputStream inputStream) throws ServiceException
ServiceException
public LifecycleConfig parseLifecycleConfigurationResponse(java.io.InputStream inputStream) throws ServiceException
ServiceException