buttress.util
Class CloseOpen

java.lang.Object
  extended bybuttress.util.CloseOpen

public abstract class CloseOpen
extends java.lang.Object


Field Summary
static java.lang.String VER_NUM
           
 
Constructor Summary
CloseOpen()
           
 
Method Summary
static boolean isListChanged()
           
static java.util.Vector[] openFile(java.io.File aFile)
          opens a file, returns the rss and feed lists of that file.
static java.util.Vector[] openFile(java.lang.String fileName)
          opens a file, returns the rss and feed lists of that file.
static boolean saveLists(java.io.File saveFile, java.util.ArrayList rssList, java.util.ArrayList filterList)
          Saves the rss and filter lists.
static boolean saveLists(java.lang.String fileName, java.util.ArrayList rssList, java.util.ArrayList filterList)
          Saves the rss and filter lists.
static void setListChanged(boolean listChanged)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VER_NUM

public static final java.lang.String VER_NUM
See Also:
Constant Field Values
Constructor Detail

CloseOpen

public CloseOpen()
Method Detail

isListChanged

public static boolean isListChanged()
Returns:
Returns the listChanged.

setListChanged

public static void setListChanged(boolean listChanged)
Parameters:
listChanged - The listChanged to set.

saveLists

public static boolean saveLists(java.lang.String fileName,
                                java.util.ArrayList rssList,
                                java.util.ArrayList filterList)
Saves the rss and filter lists.

Parameters:
fileName - String
rssList - ArrayList
filterList - ArrayList
Returns:
boolean

saveLists

public static boolean saveLists(java.io.File saveFile,
                                java.util.ArrayList rssList,
                                java.util.ArrayList filterList)
Saves the rss and filter lists.

Parameters:
saveFile - File
rssList - ArrayList
filterList - ArrayList
Returns:
boolean

openFile

public static java.util.Vector[] openFile(java.lang.String fileName)
opens a file, returns the rss and feed lists of that file.

Parameters:
fileName - String
Returns:
the file contents:
Vector[0] = rssList
 Vector[1] = feedList
 ...
 Vector[Vector.size()] = Boolean - whether or not the reading worked

openFile

public static java.util.Vector[] openFile(java.io.File aFile)
opens a file, returns the rss and feed lists of that file.

Parameters:
aFile - File
Returns:
the file contents:
Vector[0] = rssList
 Vector[1] = feedList
 ...
 Vector[Vector.size()] = Boolean - whether or not the reading worked