Java HTML Jsoup Element convertLinksToStrings(Elements links)

Here you can find the source of convertLinksToStrings(Elements links)

Description

convert Links To Strings

License

Open Source License

Declaration

final static protected ArrayList<String> convertLinksToStrings(Elements links) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.util.ArrayList;

public class Main {
    final static protected ArrayList<String> convertLinksToStrings(Elements links) {
        ArrayList<String> result = new ArrayList<String>();
        for (Element link : links) {
            result.add(link.attr("abs:href"));
        }//from   w w  w .j a  v  a 2s  .c om
        return result;
    }
}

Related

  1. appendText(Element element, StringBuffer stringBuffer)
  2. childrenByTag(final Element element, final String tag)
  3. collectItemRewards(final Element icontab, final BiConsumer collector)
  4. collectTextUntilNextTag(final Element header, final String nextTagName)
  5. containsLink(Element element, String link)
  6. convertNodeToText(Element element)
  7. convertTablesToDivs(Element body)
  8. copy(Element e)
  9. countElements(Node parent)