Class 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.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)  
      java.lang.String compressHtmlFile​(java.lang.String filename)  
      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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.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