All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jfd.ale.MakeArray

java.lang.Object
   |
   +----jfd.ale.MakeArray

public class MakeArray
extends Object
Utility class designed to make moving between external .ale files and embedded String[] data easy.

This class should actually be run by invoking "make_array" from the tools directory. It reads from standard input and writes to standard output, the only recognized switch is "-compact" which causes the utility to remove all whitespace in the generated array.

As an example, suppose you have an ale file "myfile.ale" whose contents you wish to include in your .java code as a String[]. Assume you are working in the examples/simple directory of this distribution.

../../tools/make_array < myfile.ale > temp.txt (unix)

..\..\tools\make_array < myfile.ale > temp.txt (pc)

Then (using your favorite text editor) import the temp.txt file into your java code


Method Index

 o main(String[])

Methods

 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index