|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dartra.standard.dao.ser.SerDataSource
org.dartra.standard.dao.ser.XStreamDataSource
XStream data source. This data source accesses DarTra darts game data in an XML file that is read and written using the XStream XML serialisation library.
| Constructor Summary | |
XStreamDataSource(java.lang.String fileName)
Create a new XStream data source for named data file. |
|
| Method Summary | |
protected DataContainer |
readData()
Helper to read data from the data file. |
java.lang.String |
toString()
|
protected void |
writeData(DataContainer data)
Helper to write data to the data file. |
| Methods inherited from class org.dartra.standard.dao.ser.SerDataSource |
exists, getConnection, getDataContainer, getFileName, load, reset, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XStreamDataSource(java.lang.String fileName)
Create a new XStream data source for named data file.
| Method Detail |
protected DataContainer readData()
throws org.dartra.framework.dao.DataAccessException
SerDataSourceHelper to read data from the data file.
Subclasses can redefine this method if they want to change the serialisation mechanism.
readData in class SerDataSourceorg.dartra.framework.dao.DataAccessException
protected void writeData(DataContainer data)
throws org.dartra.framework.dao.DataAccessException
SerDataSourceHelper to write data to the data file.
Subclasses can redefine this method if they want to change the serialisation mechanism.
writeData in class SerDataSourceorg.dartra.framework.dao.DataAccessExceptionpublic java.lang.String toString()
toString in class SerDataSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||