org.jdesktop.wonderland.common.wfs
Class WorldRootList

java.lang.Object
  extended by org.jdesktop.wonderland.common.wfs.WorldRootList

public class WorldRootList
extends java.lang.Object

The WorldRootList class simply represents an array of WFS root names. It is used to serialize this list across a network in XML form or out to disk.

Author:
Jordan Slott

Constructor Summary
WorldRootList()
          Default constructor
WorldRootList(java.lang.String[] roots)
          Constructor, takes the names of the roots, which may be null
 
Method Summary
static WorldRootList decode(java.io.InputStream is)
          Takes the input stream of the XML and instantiates an instance of the WFSCellChildren class
 void encode(java.io.Writer w)
          Writes the ModuleInfo class to an output stream.
 java.lang.String[] getRoots()
          Returns the array of WFS root names, null if there are none.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorldRootList

public WorldRootList()
Default constructor


WorldRootList

public WorldRootList(java.lang.String[] roots)
Constructor, takes the names of the roots, which may be null

Method Detail

getRoots

public java.lang.String[] getRoots()
Returns the array of WFS root names, null if there are none.

Returns:
An array of WFS root names

decode

public static WorldRootList decode(java.io.InputStream is)
                            throws javax.xml.bind.JAXBException
Takes the input stream of the XML and instantiates an instance of the WFSCellChildren class

Parameters:
is - The input stream of the XML representation
Throws:
javax.xml.bind.JAXBException

encode

public void encode(java.io.Writer w)
            throws javax.xml.bind.JAXBException
Writes the ModuleInfo class to an output stream.

Parameters:
w - The output write to write to
Throws:
javax.xml.bind.JAXBException


Open Wonderland - http://openwonderland.org