Enum HTML

java.lang.Object
java.lang.Enum<HTML>
htmlcompiler.tools.HTML
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HTML>, java.lang.constant.Constable

public enum HTML
extends java.lang.Enum<HTML>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String DOCTYPE  
  • Method Summary

    Modifier and Type Method Description
    static void addIntegrityAttributes​(org.w3c.dom.Element element, java.lang.String url, java.io.File file, HtmlCompiler html, Logger log)  
    static void copyAttributes​(org.w3c.dom.Element from, org.w3c.dom.Element to)  
    static void deleteTag​(org.w3c.dom.Element element)  
    static boolean isLinkFavicon​(org.w3c.dom.Element element)  
    static boolean isLinkStyleSheet​(org.w3c.dom.Element element)  
    static org.w3c.dom.Element loadHtml​(HtmlCompiler html, java.io.File location)  
    static void makeAbsolutePath​(org.w3c.dom.Element element, java.lang.String attribute)  
    static org.w3c.dom.Element newElementOf​(org.w3c.dom.Document document, java.io.File location, HtmlCompiler compiler)  
    static org.w3c.dom.Element removeAttributes​(org.w3c.dom.Element element, java.lang.String... attributes)  
    static void replaceTag​(org.w3c.dom.Element original, org.w3c.dom.Element replacement)  
    static java.lang.String toDataUrl​(java.io.File location)  
    static java.lang.String toDataUrl​(java.lang.String type, byte[] data)  
    static java.lang.String toDataUrl​(java.lang.String type, java.io.File location)  
    static org.w3c.dom.Element toElementOf​(org.w3c.dom.Document document, org.w3c.dom.Element element)  
    static java.lang.String toIntegrityValue​(byte[] data)  
    static HTML valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static HTML[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Method Details

    • values

      public static HTML[] 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 HTML valueOf​(java.lang.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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • copyAttributes

      public static void copyAttributes​(org.w3c.dom.Element from, org.w3c.dom.Element to)
    • removeAttributes

      public static org.w3c.dom.Element removeAttributes​(org.w3c.dom.Element element, java.lang.String... attributes)
    • replaceTag

      public static void replaceTag​(org.w3c.dom.Element original, org.w3c.dom.Element replacement)
    • deleteTag

      public static void deleteTag​(org.w3c.dom.Element element)
    • newElementOf

      public static org.w3c.dom.Element newElementOf​(org.w3c.dom.Document document, java.io.File location, HtmlCompiler compiler) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • toElementOf

      public static org.w3c.dom.Element toElementOf​(org.w3c.dom.Document document, org.w3c.dom.Element element)
    • loadHtml

      public static org.w3c.dom.Element loadHtml​(HtmlCompiler html, java.io.File location) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • isLinkFavicon

      public static boolean isLinkFavicon​(org.w3c.dom.Element element)
    • isLinkStyleSheet

      public static boolean isLinkStyleSheet​(org.w3c.dom.Element element)
    • toDataUrl

      public static java.lang.String toDataUrl​(java.io.File location) throws java.io.IOException
      Throws:
      java.io.IOException
    • toDataUrl

      public static java.lang.String toDataUrl​(java.lang.String type, java.io.File location) throws java.io.IOException
      Throws:
      java.io.IOException
    • toDataUrl

      public static java.lang.String toDataUrl​(java.lang.String type, byte[] data)
    • toIntegrityValue

      public static java.lang.String toIntegrityValue​(byte[] data) throws java.security.NoSuchAlgorithmException
      Throws:
      java.security.NoSuchAlgorithmException
    • makeAbsolutePath

      public static void makeAbsolutePath​(org.w3c.dom.Element element, java.lang.String attribute)
    • addIntegrityAttributes

      public static void addIntegrityAttributes​(org.w3c.dom.Element element, java.lang.String url, java.io.File file, HtmlCompiler html, Logger log) throws java.io.IOException, java.security.NoSuchAlgorithmException, javax.xml.transform.TransformerException
      Throws:
      java.io.IOException
      java.security.NoSuchAlgorithmException
      javax.xml.transform.TransformerException