Package htmlcompiler.compile.html
Class HtmlCompiler
- java.lang.Object
-
- htmlcompiler.compile.html.HtmlCompiler
-
public final class HtmlCompiler extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HtmlCompiler(Logger log, java.io.File inputDir)
-
Method Summary
Modifier and Type Method Description java.lang.StringcompileHtmlCode(java.io.File file, java.lang.String content)java.lang.StringcompileHtmlFile(java.io.File file)java.lang.StringcompressHtmlCode(java.lang.String content)java.lang.StringcompressHtmlFile(java.io.File input)java.lang.StringcompressHtmlFile(java.lang.String filename)org.w3c.dom.DocumenthtmlToDocument(java.lang.String html)org.w3c.dom.DocumentprocessHtml(java.io.File file, org.w3c.dom.Document document)java.lang.StringtoHtml(org.w3c.dom.Node node)
-
-
-
Constructor Detail
-
HtmlCompiler
public HtmlCompiler(Logger log, java.io.File inputDir) throws org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoFailureException
-
-
Method Detail
-
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
-
compressHtmlFile
public java.lang.String compressHtmlFile(java.lang.String filename) 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.IOExceptionorg.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.TransformerExceptionjava.io.IOException
-
-