Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SUPPORTED_FILETYPE
The supported filetype.
|
Modifier | Constructor and Description |
---|---|
protected |
HistoryImpl(HistoryID id,
java.io.File directory,
HistoryRecordStructure historyRecordStructure,
HistoryServiceImpl historyServiceImpl)
Creates an instance of HistoryImpl by specifying the history
identifier, the directory, the HistoryRecordStructure to use
and the parent HistoryServiceImpl.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Document |
createDocument(java.lang.String filename) |
protected org.w3c.dom.Document |
getDocumentForFile(java.lang.String filename) |
protected java.util.Iterator<java.lang.String> |
getFileList() |
org.w3c.dom.Document |
getFixedDocument(java.io.File file)
Returns the fixed document as xml Document
if file cannot be fixed return null
|
HistoryRecordStructure |
getHistoryRecordsStructure()
Returns the current HistoryRecordStructure.
|
protected HistoryServiceImpl |
getHistoryServiceImpl() |
HistoryID |
getID()
Returns the identifier of this history.
|
InteractiveHistoryReader |
getInteractiveReader()
Returns an object that can be used to read and query this history.
|
HistoryReader |
getReader()
Returns an object which can be used to read and query this history.
|
HistoryWriter |
getWriter()
Returns an object which can be used to append records to this history.
|
(package private) void |
reloadDocumentList() |
void |
setHistoryRecordsStructure(HistoryRecordStructure structure)
Sets the given structure to be the new history records
structure used in this history implementation.
|
protected void |
writeFile(java.lang.String filename) |
protected void |
writeFile(java.lang.String filename,
org.w3c.dom.Document doc) |
public static final java.lang.String SUPPORTED_FILETYPE
protected HistoryImpl(HistoryID id, java.io.File directory, HistoryRecordStructure historyRecordStructure, HistoryServiceImpl historyServiceImpl)
id
- the identifierdirectory
- the directoryhistoryRecordStructure
- the structurehistoryServiceImpl
- the parent history servicepublic HistoryID getID()
public HistoryRecordStructure getHistoryRecordsStructure()
getHistoryRecordsStructure
in interface History
public void setHistoryRecordsStructure(HistoryRecordStructure structure)
setHistoryRecordsStructure
in interface History
structure
- the new HistoryRecordStructure to usepublic HistoryReader getReader()
History
public InteractiveHistoryReader getInteractiveReader()
getInteractiveReader
in interface History
public HistoryWriter getWriter()
History
protected HistoryServiceImpl getHistoryServiceImpl()
void reloadDocumentList()
protected org.w3c.dom.Document createDocument(java.lang.String filename)
protected void writeFile(java.lang.String filename) throws java.security.InvalidParameterException, java.io.IOException
java.security.InvalidParameterException
java.io.IOException
protected void writeFile(java.lang.String filename, org.w3c.dom.Document doc) throws java.security.InvalidParameterException, java.io.IOException
java.security.InvalidParameterException
java.io.IOException
protected java.util.Iterator<java.lang.String> getFileList()
protected org.w3c.dom.Document getDocumentForFile(java.lang.String filename) throws java.security.InvalidParameterException, java.lang.RuntimeException
java.security.InvalidParameterException
java.lang.RuntimeException
public org.w3c.dom.Document getFixedDocument(java.io.File file)
file
- File the file trying to fix
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.