S-PLUS Connect/Java v1.0

com.insightful.splus.client
Class SessionProfileList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList
                  extended by com.insightful.splus.client.SessionProfileList
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, Queue

public class SessionProfileList
extends LinkedList

LinkedList of SessionProfile objects. The default LinkedList methods are used without additional type checking, so it is the programmer's responsibility to only add SessionProfile objects to this list. Also, items retrieved from the list need to be cast to (SessionProfile).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SessionProfileList()
          Initializes the SessionProfileList to an empty list or the saved profiles.
 
Method Summary
 String[] getProfileNames()
          Get a String [] of the profile names.
 void load()
          Load the profile list from the defaults file.
protected  Vector readXML(Reader in)
          Read an XML file written by writeXML() and return a Vector of SessionProfile objects.
 void store()
          Store the profile list in the defaults file.
protected  void writeXML(PrintWriter out)
          Write the profile list as XML
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SessionProfileList

public SessionProfileList()
Initializes the SessionProfileList to an empty list or the saved profiles.

Method Detail

getProfileNames

public String[] getProfileNames()
Get a String [] of the profile names.


load

public void load()
Load the profile list from the defaults file. If the file is not found or does not contain a SessionProfileList then the default is to create an empty profile list.


store

public void store()
Store the profile list in the defaults file.


writeXML

protected void writeXML(PrintWriter out)
Write the profile list as XML


readXML

protected Vector readXML(Reader in)
Read an XML file written by writeXML() and return a Vector of SessionProfile objects.


S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.