Package htmlcompiler.compile
Class HtmlCompiler
java.lang.Object
htmlcompiler.compile.HtmlCompiler
public final class HtmlCompiler
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description HtmlCompiler(Logger log)
-
Method Summary
Modifier and Type Method Description java.lang.String
compileHtmlCode(java.io.File file, java.lang.String content)
java.lang.String
compileHtmlFile(java.io.File file)
java.lang.String
compressHtmlCode(java.lang.String content)
java.lang.String
compressHtmlFile(java.io.File input)
org.w3c.dom.Document
htmlToDocument(java.lang.String html)
org.w3c.dom.Document
processHtml(java.io.File file, org.w3c.dom.Document document)
java.lang.String
toHtml(org.w3c.dom.Node node)
-
Constructor Details
-
HtmlCompiler
- Throws:
org.apache.maven.plugin.MojoFailureException
-
-
Method Details
-
compressHtmlCode
public java.lang.String compressHtmlCode(java.lang.String content) -
compressHtmlFile
public java.lang.String compressHtmlFile(java.io.File input) throws java.io.IOException- Throws:
java.io.IOException
-
compileHtmlFile
public java.lang.String compileHtmlFile(java.io.File file) throws java.lang.Exception- Throws:
java.lang.Exception
-
compileHtmlCode
public java.lang.String compileHtmlCode(java.io.File file, java.lang.String content) throws java.lang.Exception- Throws:
java.lang.Exception
-
processHtml
public org.w3c.dom.Document processHtml(java.io.File file, org.w3c.dom.Document document) throws java.lang.Exception- Throws:
java.lang.Exception
-
htmlToDocument
public org.w3c.dom.Document htmlToDocument(java.lang.String html) throws java.io.IOException, org.xml.sax.SAXException- Throws:
java.io.IOException
org.xml.sax.SAXException
-
toHtml
public java.lang.String toHtml(org.w3c.dom.Node node) throws javax.xml.transform.TransformerException, java.io.IOException- Throws:
javax.xml.transform.TransformerException
java.io.IOException
-