| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnap.io.ResumeRepository
public class ResumeRepository
Provides a binary repository that stores File objects. This
 class can be used to store download files that need to be resumed
 later.
 
 
This class is mostly thread safe (except for iterator()).
| Constructor Summary | |
|---|---|
| ResumeRepository() | |
| Method Summary | |
|---|---|
|  void | add(java.io.File file)Adds fileto the repository. | 
|  java.util.Iterator | iterator()Returns an iterator over all items in the repository. | 
|  boolean | read(java.lang.String filename,
     java.lang.String fallbackPath)Reads Fileobjects fromfilenameand adds them
 to the repository. | 
|  void | remove(java.io.File file)Removes filefrom the repository. | 
|  void | write(java.lang.String filename)Writes repository content to filename. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ResumeRepository()
| Method Detail | 
|---|
public void add(java.io.File file)
file to the repository.
public java.util.Iterator iterator()
public void remove(java.io.File file)
file from the repository.
public boolean read(java.lang.String filename,
                    java.lang.String fallbackPath)
             throws java.io.IOException
File objects from filename and adds them
 to the repository.
filename - the name of the repository filefallbackPath - if a file in the repository does not exist,
                     it is looked up in this path
File objects were read successfully or
         repository did not exist; false, otherwise
java.io.IOExceptionadd(File)
public void write(java.lang.String filename)
           throws java.io.IOException
filename.
java.io.IOException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||