public static CopyObjectResult parseCopyObjectResult(InputStream responseBody) throws ResponseParseException {
  try {
    Element root=getXmlRootElement(responseBody);
    CopyObjectResult result=new CopyObjectResult();
    result.setLastModified(DateUtil.parseIso8601Date(root.getChildText("LastModified")));
    result.setEtag(trimQuotes(root.getChildText("ETag")));
    return result;
  }
 catch (  Exception e) {
    throw new ResponseParseException(e.getMessage(),e);
  }
}

public static CopyObjectResult parseCopyObjectResult ( InputStream responseBody ) throws ResponseParseException { try { Element root = getXmlRootElement ( responseBody ) ; CopyObjectResult result = new CopyObjectResult ( ) ; result . setLastModified ( DateUtil . parseIso8601Date ( root . getChildText ( "LastModified" ) ) ) ; result . setEtag ( trimQuotes ( root . getChildText ( "ETag" ) ) ) ; return result ; } catch ( Exception e ) { throw new ResponseParseException ( e . getMessage ( ) , e ) ; } }
unmarshall copy object response body to corresponding result .
