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 voidaddIntegrityAttributes(Element element, String url, File file, HtmlCompiler html, Logger log)static voidcopyAttributes(Element from, Element to)static voiddeleteTag(Element element)static booleanisLinkFavicon(Element element)static booleanisLinkStyleSheet(Element element)static ElementloadHtml(HtmlCompiler html, File location)static voidmakeAbsolutePath(Element element, String attribute)static ElementnewElementOf(Document document, File location, HtmlCompiler compiler)static ElementremoveAttributes(Element element, String... attributes)static voidreplaceTag(Element original, Element replacement)static StringtoDataUrl(File location)static StringtoDataUrl(String type, byte[] data)static StringtoDataUrl(String type, File location)static ElementtoElementOf(Document document, Element element)static StringtoIntegrityValue(byte[] data)static HTMLvalueOf(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
-