public class DBStructSerializer
extends java.lang.Object
Constructor and Description |
---|
DBStructSerializer(HistoryServiceImpl historyService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
History |
loadHistory(java.io.File dbDatFile)
This method parses an XML file, and returns a History object created with
the information from it.
|
void |
writeHistory(java.io.File dbDatFile,
History history)
Write the history.
|
public DBStructSerializer(HistoryServiceImpl historyService)
historyService
- the history servicepublic void writeHistory(java.io.File dbDatFile, History history) throws java.io.IOException
dbDatFile
- the database filehistory
- the history to writejava.io.IOException
- if write failed for any reasonpublic History loadHistory(java.io.File dbDatFile) throws org.xml.sax.SAXException, java.io.IOException, java.text.ParseException
dbDatFile
- The file to be parsed.org.xml.sax.SAXException
- Thrown if an error occurs during XML parsing.java.io.IOException
- Thrown if an IO error occurs.java.text.ParseException
- Thrown if there is error in the XML data format.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.