Package htmlcompiler.tools
Enum HTML
- All Implemented Interfaces:
Serializable
,Comparable<HTML>
,Constable
public enum HTML extends Enum<HTML>
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and Type Method Description static void
addIntegrityAttributes(Element element, String url, File file, HtmlCompiler html, Logger log)
static void
copyAttributes(Element from, Element to)
static void
deleteTag(Element element)
static boolean
isLinkFavicon(Element element)
static boolean
isLinkStyleSheet(Element element)
static Element
loadHtml(HtmlCompiler html, File location)
static void
makeAbsolutePath(Element element, String attribute)
static Element
newElementOf(Document document, File location, HtmlCompiler compiler)
static Element
removeAttributes(Element element, String... attributes)
static void
replaceTag(Element original, Element replacement)
static String
toDataUrl(File location)
static String
toDataUrl(String type, byte[] data)
static String
toDataUrl(String type, File location)
static Element
toElementOf(Document document, Element element)
static String
toIntegrityValue(byte[] data)
static HTML
valueOf(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.
-
Field Details
-
DOCTYPE
- See Also:
- Constant Field Values
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
copyAttributes
-
removeAttributes
-
replaceTag
-
deleteTag
-
newElementOf
public static Element newElementOf(Document document, File location, HtmlCompiler compiler) throws Exception- Throws:
Exception
-
toElementOf
-
loadHtml
- Throws:
Exception
-
isLinkFavicon
-
isLinkStyleSheet
-
toDataUrl
- Throws:
IOException
-
toDataUrl
- Throws:
IOException
-
toDataUrl
-
toIntegrityValue
- Throws:
NoSuchAlgorithmException
-
makeAbsolutePath
-
addIntegrityAttributes
public static void addIntegrityAttributes(Element element, String url, File file, HtmlCompiler html, Logger log) throws IOException, NoSuchAlgorithmException, TransformerException
-