Enum TagParsingJsoup

java.lang.Object
java.lang.Enum<TagParsingJsoup>
htmlcompiler.tags.jsoup.TagParsingJsoup
All Implemented Interfaces:
Serializable, Comparable<TagParsingJsoup>

public enum TagParsingJsoup
extends Enum<TagParsingJsoup>
  • Method Details

    • values

      public static TagParsingJsoup[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TagParsingJsoup valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • copyAttributes

      public static void copyAttributes​(org.jsoup.nodes.Element from, org.jsoup.nodes.Element to)
    • removeAttributes

      public static org.jsoup.nodes.Element removeAttributes​(org.jsoup.nodes.Element element, String... attributes)
    • isLinkFavicon

      public static boolean isLinkFavicon​(org.jsoup.nodes.Element element)
    • isLinkStyleSheet

      public static boolean isLinkStyleSheet​(org.jsoup.nodes.Element element)
    • toDataUrl

      public static String toDataUrl​(Path location) throws IOException
      Throws:
      IOException
    • toDataUrl

      public static String toDataUrl​(String type, Path location) throws IOException
      Throws:
      IOException
    • toDataUrl

      public static String toDataUrl​(String type, byte[] data)
    • makeAbsolutePath

      public static void makeAbsolutePath​(org.jsoup.nodes.Element element, String attribute)
    • addIntegrityAttributes

      public static void addIntegrityAttributes​(org.jsoup.nodes.Element element, String url, Logger log) throws IOException, NoSuchAlgorithmException
      Throws:
      IOException
      NoSuchAlgorithmException
    • isInlineScript

      public static boolean isInlineScript​(org.jsoup.nodes.Element node)
    • isInlineStyle

      public static boolean isInlineStyle​(org.jsoup.nodes.Element node)
    • isScriptEmpty

      public static boolean isScriptEmpty​(org.jsoup.nodes.Element script)
    • isStyleEmpty

      public static boolean isStyleEmpty​(org.jsoup.nodes.Element style)
    • setData

      public static void setData​(org.jsoup.nodes.Element script, String data)
    • isHtml

      public static boolean isHtml​(org.jsoup.nodes.Element script)
    • isCss

      public static boolean isCss​(org.jsoup.nodes.Element link)
    • previousElementSibling

      public static org.jsoup.nodes.Element previousElementSibling​(org.jsoup.nodes.Element element)
    • replaceWith

      public static void replaceWith​(org.jsoup.nodes.Element original, org.jsoup.nodes.Element replacement)
    • replaceWith

      public static void replaceWith​(org.jsoup.nodes.Element original, org.jsoup.select.Elements replacements)