com.jme.scene.model.XMLparser
Class BinaryToXML

java.lang.Object
  extended bycom.jme.scene.model.XMLparser.BinaryToXML

public class BinaryToXML
extends java.lang.Object

Started Date: Jun 23, 2004

This class converts jME's binary format to human readable XML.

Author:
Jack Lindamood

Constructor Summary
BinaryToXML()
           
 
Method Summary
static void main(java.lang.String[] args)
          Converts jME binary to XML.
 void sendBinarytoXML(java.io.InputStream binFile, java.io.Writer XML)
          The only function a user needs to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryToXML

public BinaryToXML()
Method Detail

main

public static void main(java.lang.String[] args)
Converts jME binary to XML. The syntax is: "BinaryToXML file.jme out.xml"

Parameters:
args - 2 strings. The first is the jME binary file to read, the second is the place to place its output.

sendBinarytoXML

public void sendBinarytoXML(java.io.InputStream binFile,
                            java.io.Writer XML)
                     throws java.io.IOException
The only function a user needs to use. Pass in an inputstream that represents jME's binary format, and BinaryToXML.sendBinarytoXML will write the stream to XML format.

Parameters:
binFile - The input stream of the jME file.
XML - Where to write the XML format too.
Throws:
java.io.IOException - If unable to read or write either file.