| | |
| | | for (int i = 0; i < items.size(); i++) {
|
| | | ImageInfo img = new ImageInfo();
|
| | | Element item = items.get(i);
|
| | | if (StringUtil.isNullOrEmpty(item.attr("size")))
|
| | | if (StringUtil.isNullOrEmpty(item.ownText()))
|
| | | continue;
|
| | | img.setWidth(Integer.parseInt(item.attr("size").split("x")[0]));
|
| | | img.setHeight(Integer.parseInt(item.attr("size").split("x")[1]));
|
| | | if (!StringUtil.isNullOrEmpty(item.attr("size"))) {
|
| | | img.setWidth(Integer.parseInt(item.attr("size").split("x")[0]));
|
| | | img.setHeight(Integer.parseInt(item.attr("size").split("x")[1]));
|
| | | }
|
| | | if (item.ownText().startsWith("http"))
|
| | | img.setPicture(item.ownText().trim());
|
| | | else
|