Package com.iizix.js.build
Class HTMLSourcesManager
- java.lang.Object
- com.iizix.js.build.HTMLSourcesManager
 
- public class HTMLSourcesManager extends java.lang.ObjectThe manager for HTML sources.- This class is used to handle e.g. iiziApp.html in the server in development mode or for iiziRun. - Author:
- Christopher Mindus
 
- Method Summary- All Methods Static Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - void- compressHTMLFile(java.io.File root, IWebServerCompression webServer, boolean doCompress, java.lang.String fn, boolean isLocal)Compresses the specified HTML files and adds all files for redirection.- void- compressHTMLFiles(java.io.File root, IWebServerCompression webServer, boolean doCompress)Compresses the specified HTML files and adds all files for redirection.- HTMLSourceInfo- getHTMLSourceInfo(java.io.File file)Gets the HTML source info for a file.- static HTMLSourcesManager- getInstance(IWebServerCompression webServer, ISourceResolver resolver)Gets the instance of the run support.
 
- Method Detail- getInstance- public static HTMLSourcesManager getInstance(IWebServerCompression webServer, ISourceResolver resolver) Gets the instance of the run support.
 - getHTMLSourceInfo- public HTMLSourceInfo getHTMLSourceInfo(java.io.File file) throws java.io.FileNotFoundException Gets the HTML source info for a file.- Parameters:
- file- The file to use.
- Throws:
- java.io.FileNotFoundException- If the file is not found.
 
 - compressHTMLFiles- public void compressHTMLFiles(java.io.File root, IWebServerCompression webServer, boolean doCompress) throws java.io.IOExceptionCompresses the specified HTML files and adds all files for redirection. The CSS files are all compressed into one, and so for the JS files. The redirected file for the compressed and converted HTML source is also added.- Parameters:
- root- The root directory of the web server.
- webServer- Web server compression implementor.
- doCompress- Compression flag.
- Throws:
- java.io.IOException- For I/O errors.
 
 - compressHTMLFile- public void compressHTMLFile(java.io.File root, IWebServerCompression webServer, boolean doCompress, java.lang.String fn, boolean isLocal) throws java.io.IOExceptionCompresses the specified HTML files and adds all files for redirection. The CSS files are all compressed into one, and so for the JS files. The redirected file for the compressed and converted HTML source is also added.- Parameters:
- root- The root directory of the web server.
- webServer- Web server compression implementor, null for none.
- doCompress- Compression flag.
- fn- The HTML file name.
- isLocal- Flag for local file (iiziRun).
- Throws:
- java.io.IOException- For I/O errors.