Java HTML Jsoup Element getTextContent(Element node)

Here you can find the source of getTextContent(Element node)

Description

getTextContent avoid NullReferenceException

License

Apache License

Declaration

public static String getTextContent(Element node) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import org.jsoup.nodes.*;

public class Main {
    /**//from   w w w.j ava 2  s  .c o  m
     * getTextContent avoid NullReferenceException
     */
    public static String getTextContent(Element node) {
        return (node == null) ? null : node.text();
    }
}

Related

  1. getOneSubItemOfClass(Element parent, String className)
  2. getReviewAuthorIDFromMultipleSelect(Element doc, String location, String locationValue)
  3. getSingleElement(final Elements elements)
  4. getSrcOrRelFromImageElement(Element imgElm)
  5. getString(Elements td, int i)
  6. getTextFromAClass(Element doc, String location)
  7. getTextFromMultipleSelect(Element doc, String location, String locationValue)
  8. getTextFromNodeIfAvailable(Element doc)
  9. getTextFromNodeSelect(Element doc, String location, String locationValue)