opendap.crawler
Class URLGroups

java.lang.Object
  extended by opendap.crawler.URLGroups
All Implemented Interfaces:
java.lang.Iterable<URLGroup>

public class URLGroups
extends java.lang.Object
implements java.lang.Iterable<URLGroup>

Hold a collection of groups. This provides a way to serialize/deserialize these objects so that they can be passed between programs.

Author:
jimg

Constructor Summary
URLGroups()
           
URLGroups(java.lang.String groupsName)
           
 
Method Summary
 void add(URLGroup g)
           
 java.util.Iterator<URLGroup> iterator()
           
 void restoreState(java.lang.String groupName)
           
 void saveState(java.lang.String groupsName)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLGroups

public URLGroups()
          throws java.lang.Exception
Throws:
java.lang.Exception

URLGroups

public URLGroups(java.lang.String groupsName)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

iterator

public java.util.Iterator<URLGroup> iterator()
Specified by:
iterator in interface java.lang.Iterable<URLGroup>

size

public int size()

add

public void add(URLGroup g)

restoreState

public void restoreState(java.lang.String groupName)
                  throws java.lang.Exception
Throws:
java.lang.Exception

saveState

public void saveState(java.lang.String groupsName)
               throws java.lang.Exception
Throws:
java.lang.Exception