@SuppressWarnings("unchecked") public static List<Style> parseListImageStyle(InputStream responseBody) throws ResponseParseException {
  try {
    Element root=getXmlRootElement(responseBody);
    List<Style> styleList=new ArrayList<Style>();
    List<Element> styleElems=root.getChildren("Style");
    for (    Element e : styleElems) {
      Style style=new Style();
      style.SetStyleName(e.getChildText("Name"));
      style.SetStyle(e.getChildText("Content"));
      style.SetLastModifyTime(DateUtil.parseRfc822Date(e.getChildText("LastModifyTime")));
      style.SetCreationDate(DateUtil.parseRfc822Date(e.getChildText("CreateTime")));
      styleList.add(style);
    }
    return styleList;
  }
 catch (  Exception e) {
    throw new ResponseParseException(e.getMessage(),e);
  }
}

@ SuppressWarnings ( "unchecked" ) public static List < Style > parseListImageStyle ( InputStream responseBody ) throws ResponseParseException { try { Element root = getXmlRootElement ( responseBody ) ; List < Style > styleList = new ArrayList < Style > ( ) ; List < Element > styleElems = root . getChildren ( "Style" ) ; for ( Element e : styleElems ) { Style style = new Style ( ) ; style . SetStyleName ( e . getChildText ( "Name" ) ) ; style . SetStyle ( e . getChildText ( "Content" ) ) ; style . SetLastModifyTime ( DateUtil . parseRfc822Date ( e . getChildText ( "LastModifyTime" ) ) ) ; style . SetCreationDate ( DateUtil . parseRfc822Date ( e . getChildText ( "CreateTime" ) ) ) ; styleList . add ( style ) ; } return styleList ; } catch ( Exception e ) { throw new ResponseParseException ( e . getMessage ( ) , e ) ; } }
unmarshall list image style response body to style list .
