|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.jcrontab.data.FileSource
This class Is the implementation of DataSource to access Info in a FileSystem
| Constructor Summary | |
protected |
FileSource()
Creates new FileSource |
| Method Summary | |
CrontabEntryBean |
find(CrontabEntryBean ceb)
This method searches the given Bean from the File |
CrontabEntryBean[] |
findAll()
This method searches all the CrontabEntryBean from the File |
DataSource |
getInstance()
This method returns the singleton is very important to grant That only a Thread accesses at a time |
void |
remove(CrontabEntryBean[] ceb)
This method removes the CrontabEntryBean array from the File |
void |
store(CrontabEntryBean bean)
This method saves the CrontabEntryBean the actual problem with this method is that doesn´t store comments and blank lines from the original file any ideas? |
void |
store(CrontabEntryBean[] beans)
This method saves the CrontabEntryBean array the actual problem with this method is that doesn´t store comments and blank lines from the original file any ideas? |
void |
storeAll(CrontabEntryBean[] list)
This method saves the CrontabEntryBean array the actual problem with this method is that doesn´t store comments and blank lines from the original file any ideas? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected FileSource()
| Method Detail |
public DataSource getInstance()
getInstance in interface DataSource
public CrontabEntryBean find(CrontabEntryBean ceb)
throws CrontabEntryException,
java.io.IOException,
DataNotFoundException
find in interface DataSourceCrontabEntryException - when it can't parse the line correctly
java.io.IOException - If it can't access correctly to the File
DataNotFoundException - whe it can't find nothing in the file
public CrontabEntryBean[] findAll()
throws CrontabEntryException,
java.io.IOException,
DataNotFoundException
findAll in interface DataSourceCrontabEntryException - when it can't parse the line correctly
java.io.IOException - If it can't access correctly to the File
DataNotFoundException - whe it can't find nothing in the file
public void remove(CrontabEntryBean[] ceb)
throws java.lang.Exception
remove in interface DataSourcejava.lang.Exception
public void storeAll(CrontabEntryBean[] list)
throws CrontabEntryException,
java.io.FileNotFoundException,
java.io.IOException
CrontabEntryException - when it can't parse the line correctly
java.io.IOException - If it can't access correctly to the File
DataNotFoundException - whe it can't find nothing in the file usually
Exception should'nt this
java.io.FileNotFoundException
public void store(CrontabEntryBean[] beans)
throws CrontabEntryException,
java.io.IOException,
DataNotFoundException
store in interface DataSourceCrontabEntryException - when it can't parse the line correctly
java.io.IOException - If it can't access correctly to the File
DataNotFoundException - whe it can't find nothing in the file usually
Exception should'nt this
public void store(CrontabEntryBean bean)
throws CrontabEntryException,
java.io.IOException,
DataNotFoundException
store in interface DataSourceCrontabEntryException - when it can't parse the line correctly
java.io.IOException - If it can't access correctly to the File
DataNotFoundException - whe it can't find nothing in the file usually
Exception should'nt this
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||