Cramfull Compiled Resources v2.00

be.arci.pub
Class SerializingResourceCompiler

java.lang.Object
  |
  +--be.arci.pub.ResourceCompiler
        |
        +--be.arci.pub.SerializingResourceCompiler

public class SerializingResourceCompiler
extends ResourceCompiler

Skeleton example for extending ResourceCompiler to add serialized objects when compiling a Cramfull subclass. This class is not meant to be used as is, but only as an example to write your own. Do not forget to move your version of this class out of the be.arci package hierarchy.

We supply this class as a free service to all users of the Cramfull Compiled Resources library. You are allowed to modify this source code, provided you move the class out of the be.arci package hierarchy.

See Also:
ResourceCompiler

Field Summary
static java.lang.String SERIALIZED_TAG
          Tag by which the ResourceViewer utility recognizes serialized arrays of Objects.
 
Fields inherited from class be.arci.pub.ResourceCompiler
compiler, DEFAULT_CRAMFULL, sEncoder
 
Constructor Summary
SerializingResourceCompiler()
           
 
Method Summary
static void main(java.lang.String[] args)
          Example of invoking a modified version of SerializingResourceCompiler.
protected  void openCompiler(java.io.File flOutputdir, java.lang.String sOutputClass, boolean swReplace)
          Opens a new ClassCompiler, which starts writing the output class, and then adds an array of objects to it through serialization.
 
Methods inherited from class be.arci.pub.ResourceCompiler
addResource, closeCompiler, compile, expandCommandfiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIALIZED_TAG

public static final java.lang.String SERIALIZED_TAG
Tag by which the ResourceViewer utility recognizes serialized arrays of Objects.
Constructor Detail

SerializingResourceCompiler

public SerializingResourceCompiler()
Method Detail

main

public static void main(java.lang.String[] args)
Example of invoking a modified version of SerializingResourceCompiler. Do not use this on SerializingResourceCompiler itself, as this is only a skeleton example.

openCompiler

protected void openCompiler(java.io.File flOutputdir,
                            java.lang.String sOutputClass,
                            boolean swReplace)
                     throws java.io.IOException
Opens a new ClassCompiler, which starts writing the output class, and then adds an array of objects to it through serialization.
Overrides:
openCompiler in class ResourceCompiler
See Also:
ClassCompiler.addSerialized(java.lang.String, java.lang.String, java.lang.Object), ResourceCompiler.openCompiler(java.io.File, java.lang.String, boolean)

Cramfull Compiled Resources v2.00