com.hdcookbook.grin.binaryconverter
Class Main
java.lang.Object
com.hdcookbook.grin.binaryconverter.Main
public class Main
- extends java.lang.Object
A tool that converts a text based GRIN script to the binary format.
Constructor Summary |
Main()
|
Method Summary |
static void |
convert(java.lang.String[] assets,
java.io.File[] assetsDir,
java.lang.String[] showFiles,
ExtensionParser extensionParser,
java.lang.String outputDir,
boolean debug,
boolean optimize)
Converts the text based GRIN script to a binary format. |
static void |
main(java.lang.String[] args)
A driver method for the Main.convert(String, String). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Main
public Main()
main
public static void main(java.lang.String[] args)
- A driver method for the Main.convert(String, String).
- Parameters:
args
- Arguments. Requires the name of the text-based GRIN script to read.- See Also:
convert(String[], File[], String[], ExtensionParser, String, boolean, boolean)
convert
public static void convert(java.lang.String[] assets,
java.io.File[] assetsDir,
java.lang.String[] showFiles,
ExtensionParser extensionParser,
java.lang.String outputDir,
boolean debug,
boolean optimize)
throws java.io.IOException
- Converts the text based GRIN script to a binary format.
- Parameters:
assets
- The path to the assets in a jarfile, which is used
as the first parameter to AssetFinder.setSearchPath(String[], File[])
.
Could be null.assetsDir
- The path to the assets in the filesystem, which is
used as the second parameter to AssetFinder.setSearchPath(String[], File[])
.
Could be null.showFiles
- The GRIN text script files to read in.extensionParser
- The ExtensionParser for handling extensions.outputDir
- The directory to output generated files.debug
- If true, include debug information to generated
binary file.optimize
- If true, apply optimization to the show object,
such as creating image mosaics.
- Throws:
java.io.IOException