com.jme.scene.model.XMLparser
Class XMLtoBinary

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

public class XMLtoBinary
extends java.lang.Object

Started Date: Jun 23, 2004

This class can read a XML file and convert it into jME binary format.

Author:
Jack Lindamood

Constructor Summary
XMLtoBinary()
          Creates a new XMl -> Binary object.
 
Method Summary
static void main(java.lang.String[] args)
          Converts an XML file to jME binary.
 void sendXMLtoBinary(java.io.InputStream XmlStream, java.io.OutputStream binFile)
          The only function a user needs to call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLtoBinary

public XMLtoBinary()
Creates a new XMl -> Binary object.

Method Detail

main

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

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

sendXMLtoBinary

public void sendXMLtoBinary(java.io.InputStream XmlStream,
                            java.io.OutputStream binFile)
The only function a user needs to call. It converts an XML file to jME's binary format

Parameters:
XmlStream - A stream representing the XML file to convert
binFile - The stream to save the XML's jME binary equivalent