com.hdcookbook.grin.io.binary
Class GrinBinaryWriter

java.lang.Object
  extended by com.hdcookbook.grin.io.binary.GrinBinaryWriter

public class GrinBinaryWriter
extends java.lang.Object

The main class to write out the Show object to a binary file format.


Constructor Summary
GrinBinaryWriter(SEShow show, boolean isDebugging)
          Constructs GrinBinaryWriter.
 
Method Summary
 void writeCommandClass(SEShow show, boolean forXlet, java.io.File file)
          Writes out an auto-generated java class that includes information about Extension classes and ShowCommand subclasses.
 void writeShow(java.io.DataOutputStream out)
          Writes out the show object for this GrinBinaryWriter, and close the DataOutputStream when done.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrinBinaryWriter

public GrinBinaryWriter(SEShow show,
                        boolean isDebugging)
Constructs GrinBinaryWriter.

Parameters:
show - The show object which this GrinBinaryWriter makes into a binary format.
Method Detail

writeShow

public void writeShow(java.io.DataOutputStream out)
               throws java.io.IOException
Writes out the show object for this GrinBinaryWriter, and close the DataOutputStream when done.

Parameters:
out - The DataOutputStream to write out show's binary data to.
Throws:
java.io.IOException - if writing to the DataOutputStream fails.

writeCommandClass

public void writeCommandClass(SEShow show,
                              boolean forXlet,
                              java.io.File file)
                       throws java.io.IOException
Writes out an auto-generated java class that includes information about Extension classes and ShowCommand subclasses.

Throws:
java.io.IOException