public static InitiateMultipartUploadResult parseInitiateMultipartUpload(InputStream responseBody) throws ResponseParseException {
  try {
    Element root=getXmlRootElement(responseBody);
    InitiateMultipartUploadResult result=new InitiateMultipartUploadResult();
    if (root.getChild("Bucket") != null) {
      result.setBucketName(root.getChildText("Bucket"));
    }
    if (root.getChild("Key") != null) {
      result.setKey(root.getChildText("Key"));
    }
    if (root.getChild("UploadId") != null) {
      result.setUploadId(root.getChildText("UploadId"));
    }
    return result;
  }
 catch (  Exception e) {
    throw new ResponseParseException(e.getMessage(),e);
  }
}

public static InitiateMultipartUploadResult parseInitiateMultipartUpload ( InputStream responseBody ) throws ResponseParseException { try { Element root = getXmlRootElement ( responseBody ) ; InitiateMultipartUploadResult result = new InitiateMultipartUploadResult ( ) ; if ( root . getChild ( "Bucket" ) != null ) { result . setBucketName ( root . getChildText ( "Bucket" ) ) ; } if ( root . getChild ( "Key" ) != null ) { result . setKey ( root . getChildText ( "Key" ) ) ; } if ( root . getChild ( "UploadId" ) != null ) { result . setUploadId ( root . getChildText ( "UploadId" ) ) ; } return result ; } catch ( Exception e ) { throw new ResponseParseException ( e . getMessage ( ) , e ) ; } }
unmarshall initiate multipart upload response body to corresponding result .
