public enum HTML extends Enum<HTML>
| Modifier and Type | Method and Description |
|---|---|
static void |
addIntegrityAttributes(Element element,
String url,
File inputDir,
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.
|
public static final String DOCTYPE
public static HTML[] values()
for (HTML c : HTML.values()) System.out.println(c);
public static HTML valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void deleteTag(Element element)
public static Element newElementOf(Document document, File location, HtmlCompiler compiler) throws Exception
Exceptionpublic static Element loadHtml(HtmlCompiler html, File location) throws Exception
Exceptionpublic static boolean isLinkFavicon(Element element)
public static boolean isLinkStyleSheet(Element element)
public static String toDataUrl(File location) throws IOException
IOExceptionpublic static String toDataUrl(String type, File location) throws IOException
IOExceptionpublic static String toIntegrityValue(byte[] data) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic static void addIntegrityAttributes(Element element, String url, File inputDir, File file, HtmlCompiler html, Logger log) throws IOException, NoSuchAlgorithmException, TransformerException
Copyright © 2019. All rights reserved.