Package com.iizix.js.build
Class HTMLSourceInfo
- java.lang.Object
- com.iizix.js.build.HTMLSourceInfo
public class HTMLSourceInfo extends java.lang.Object
The HTML source information.- Author:
- Christopher Mindus
Nested Class Summary
Nested Classes Modifier and Type Class Description class
HTMLSourceInfo.Config
Internal class for information.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTMLSourceInfo.Config
getConfig(boolean isLocal, boolean isDevel)
Gets the config.boolean
isCompressedConfigPresent(boolean isLocal)
Checks if a compressed config is present.
Method Detail
getConfig
public HTMLSourceInfo.Config getConfig(boolean isLocal, boolean isDevel) throws java.io.IOException
Gets the config.- Parameters:
isLocal
- The local location flag, true means iiziRun or iiziGo, false means browser (including localhost).isDevel
- The development version flag.- Returns:
- The configuration to use.
- Throws:
java.io.IOException
- If the file is no longer present or fails to re-load.
isCompressedConfigPresent
public boolean isCompressedConfigPresent(boolean isLocal)
Checks if a compressed config is present. This method is used to test for compressed files availability in a development environment. For production environment, this method would generally return true always.- Parameters:
isLocal
- Flag for local (true for iiziRun), false for remote.- Returns:
- true If there are compressed files available in web root directory.