Package com.iizix.js.build
Class InfoFromSources
- java.lang.Object
- com.iizix.js.build.InfoFromSources
public class InfoFromSources extends java.lang.Object
Class to extract build information from a HTML file used to launch an application. The information is JavaScript files and CSS files.- Author:
- Christopher Mindus
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InfoFromSources
getInstance()
Gets the instance of the run support.void
getSources(java.lang.String fileName, java.io.BufferedReader reader, java.util.List<java.lang.String> jsList, java.util.List<java.lang.String> dynamicJSList, java.util.List<java.lang.String> cssList, java.util.Map<java.lang.String,java.lang.String> settings)
Gets the JavaScript and CSS sources required for a HTML file.void
getSources(java.lang.String fileName, java.util.List<java.lang.String> jsList, java.util.List<java.lang.String> dynamicJSList, java.util.List<java.lang.String> cssList)
Gets the JavaScript and CSS sources required for a HTML file.static void
main(java.lang.String[] args)
Main routine.
Method Detail
getInstance
public static InfoFromSources getInstance()
Gets the instance of the run support.
main
public static void main(java.lang.String[] args)
Main routine.
getSources
public void getSources(java.lang.String fileName, java.util.List<java.lang.String> jsList, java.util.List<java.lang.String> dynamicJSList, java.util.List<java.lang.String> cssList) throws java.io.IOException, java.text.ParseException
Gets the JavaScript and CSS sources required for a HTML file.- Parameters:
fileName
- File name of the HTML file.jsList
- List of JavaScript sources filled in.dynamicJSList
- List of JavaScript sources filled in.cssList
- List of CSS sources filled in.- Throws:
java.io.IOException
- When file read errors occurs.java.text.ParseException
- For parsing errors in the file.
getSources
public void getSources(java.lang.String fileName, java.io.BufferedReader reader, java.util.List<java.lang.String> jsList, java.util.List<java.lang.String> dynamicJSList, java.util.List<java.lang.String> cssList, java.util.Map<java.lang.String,java.lang.String> settings) throws java.io.IOException, java.text.ParseException
Gets the JavaScript and CSS sources required for a HTML file.- Parameters:
fileName
- The file name.reader
- The reader of the HTML file.jsList
- List of JavaScript sources filled in.dynamicJSList
- List of JavaScript sources filled in.cssList
- List of CSS sources filled in.settings
- Settings to fill in from HTML file, null for none.- Throws:
java.io.IOException
- When file read errors occurs.java.text.ParseException
- For parsing errors in the file.