/** * @param inputStream * * @return * true if the bucket is configured as Requester Pays, false if it is * configured as Owner pays. * * @throws ServiceException */ public boolean parseRequestPaymentConfigurationResponse(InputStream inputStream) throws ServiceException { RequestPaymentConfigurationHandler handler = new RequestPaymentConfigurationHandler(); parseXmlInputStream(handler, inputStream); return handler.isRequesterPays(); }
/** * @param inputStream * * @return * true if the bucket is configured as Requester Pays, false if it is * configured as Owner pays. * * @throws ServiceException */ public boolean parseRequestPaymentConfigurationResponse(InputStream inputStream) throws ServiceException { RequestPaymentConfigurationHandler handler = new RequestPaymentConfigurationHandler(); parseXmlInputStream(handler, inputStream); return handler.isRequesterPays(); }