org.jdesktop.wonderland.common.wfs
Class WFSRecordingList

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

public class WFSRecordingList
extends java.lang.Object

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

Author:
Jordan Slott , Bernard Horan

Constructor Summary
WFSRecordingList()
          Default constructor
WFSRecordingList(java.lang.String[] recordings)
          Constructor, takes the names of the recordings, which may be null
 
Method Summary
static WFSRecordingList decode(java.io.InputStream is)
          Takes the input stream of the XML and instantiates an instance of the WFSREcordingList class
 void encode(java.io.Writer w)
          Writes the WFSREcordingList class to an output stream.
 java.lang.String[] getRecordings()
          Returns the array of WFS recording 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

WFSRecordingList

public WFSRecordingList()
Default constructor


WFSRecordingList

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

Method Detail

getRecordings

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

Returns:
An array of WFS recording names

decode

public static WFSRecordingList decode(java.io.InputStream is)
                               throws javax.xml.bind.JAXBException
Takes the input stream of the XML and instantiates an instance of the WFSREcordingList 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 WFSREcordingList class to an output stream.

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


Open Wonderland - http://openwonderland.org