| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
DOCTYPE |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
addIntegrityAttributes(org.w3c.dom.Element element,
java.lang.String url,
java.io.File inputDir,
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.
|
public static final java.lang.String DOCTYPE
public static HTML[] values()
for (HTML c : HTML.values()) System.out.println(c);
public static HTML valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static void copyAttributes(org.w3c.dom.Element from,
org.w3c.dom.Element to)
public static org.w3c.dom.Element removeAttributes(org.w3c.dom.Element element,
java.lang.String... attributes)
public static void replaceTag(org.w3c.dom.Element original,
org.w3c.dom.Element replacement)
public static void deleteTag(org.w3c.dom.Element element)
public static org.w3c.dom.Element newElementOf(org.w3c.dom.Document document,
java.io.File location,
HtmlCompiler compiler)
throws java.lang.Exception
java.lang.Exceptionpublic static org.w3c.dom.Element toElementOf(org.w3c.dom.Document document,
org.w3c.dom.Element element)
public static org.w3c.dom.Element loadHtml(HtmlCompiler html, java.io.File location) throws java.lang.Exception
java.lang.Exceptionpublic static boolean isLinkFavicon(org.w3c.dom.Element element)
public static boolean isLinkStyleSheet(org.w3c.dom.Element element)
public static java.lang.String toDataUrl(java.io.File location)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String toDataUrl(java.lang.String type,
java.io.File location)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String toDataUrl(java.lang.String type,
byte[] data)
public static java.lang.String toIntegrityValue(byte[] data)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionpublic static void makeAbsolutePath(org.w3c.dom.Element element,
java.lang.String attribute)
public static void addIntegrityAttributes(org.w3c.dom.Element element,
java.lang.String url,
java.io.File inputDir,
java.io.File file,
HtmlCompiler html,
Logger log)
throws java.io.IOException,
java.security.NoSuchAlgorithmException,
javax.xml.transform.TransformerException
java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionjavax.xml.transform.TransformerExceptionCopyright © 2018. All rights reserved.