/** * Parses a LoggingStatus response XML document for a bucket from an input stream. * * @param inputStream * XML data input stream. * @return * the XML handler object populated with data parsed from the XML stream. * * @throws ServiceException */ public BucketLoggingStatusHandler parseLoggingStatusResponse(InputStream inputStream) throws ServiceException { BucketLoggingStatusHandler handler; if (this.isGoogleStorageMode) { handler = new GSBucketLoggingStatusHandler(); } else { handler = new S3BucketLoggingStatusHandler(); } return parseLoggingStatusResponse(inputStream, handler); }
/** * Parses a LoggingStatus response XML document for a bucket from an input stream. * * @param inputStream * XML data input stream. * @return * the XML handler object populated with data parsed from the XML stream. * * @throws ServiceException */ public BucketLoggingStatusHandler parseLoggingStatusResponse(InputStream inputStream) throws ServiceException { BucketLoggingStatusHandler handler; if (this.isGoogleStorageMode) { handler = new GSBucketLoggingStatusHandler(); } else { handler = new S3BucketLoggingStatusHandler(); } return parseLoggingStatusResponse(inputStream, handler); }
@Override public BucketLoggingStatusHandler parseLoggingStatusResponse(InputStream inputStream) throws ServiceException { return super.parseLoggingStatusResponse(inputStream, new GSBucketLoggingStatusHandler()); }