com.blackledge.david.tivo.shopper
Class VshFile
java.lang.Object
com.blackledge.david.tivo.shopper.VshFile
public class VshFile
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VshFile
public VshFile()
VshFile
public VshFile(String fileName)
saveAs
public File saveAs(String fileName,
String header)
throws IOException
- (Probably) overwrites the file if it exists.
- Parameters:
fileName
- header
-
- Returns:
- the file object for the file that was written.
- Throws:
IOException
getHeader
public String getHeader()
addItem
public boolean addItem(VshItem item)
removeItem
public boolean removeItem(VshItem item)
setAllStatus
public void setAllStatus(String status)
setAllAutoDelete
public void setAllAutoDelete(boolean status)
getItems
public Set getItems()
- this is actually a TreeSet so it automatically maintains natural order of
the items.
- Returns:
- list of
VshItem
s
addNeededItems
public void addNeededItems(VshFile baseFile)
- Adds items that are marked needed
- Parameters:
baseFile
-
getName
public String getName()
size
public int size()
getCategories
public List getCategories()
getUnits
public List getUnits()