|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.history.HistoryImpl
public class HistoryImpl
| Field Summary | |
|---|---|
static String |
SUPPORTED_FILETYPE
The supported filetype. |
| Constructor Summary | |
|---|---|
protected |
HistoryImpl(HistoryID id,
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. |
| Method Summary | |
|---|---|
protected Document |
createDocument(String filename)
|
protected Document |
getDocumentForFile(String filename)
|
protected Iterator<String> |
getFileList()
|
Document |
getFixedDocument(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. |
void |
setHistoryRecordsStructure(HistoryRecordStructure structure)
Sets the given structure to be the new history records structure used in this history implementation. |
protected void |
writeFile(String filename)
|
protected void |
writeFile(String filename,
Document doc)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SUPPORTED_FILETYPE
| Constructor Detail |
|---|
protected HistoryImpl(HistoryID id,
File directory,
HistoryRecordStructure historyRecordStructure,
HistoryServiceImpl historyServiceImpl)
id - the identifierdirectory - the directoryhistoryRecordStructure - the structurehistoryServiceImpl - the parent history service| Method Detail |
|---|
public HistoryID getID()
getID in interface Historypublic HistoryRecordStructure getHistoryRecordsStructure()
getHistoryRecordsStructure in interface Historypublic void setHistoryRecordsStructure(HistoryRecordStructure structure)
setHistoryRecordsStructure in interface Historystructure - the new HistoryRecordStructure to usepublic HistoryReader getReader()
History
getReader in interface Historypublic InteractiveHistoryReader getInteractiveReader()
getInteractiveReader in interface Historypublic HistoryWriter getWriter()
History
getWriter in interface Historyprotected HistoryServiceImpl getHistoryServiceImpl()
protected Document createDocument(String filename)
protected void writeFile(String filename)
throws InvalidParameterException,
IOException
InvalidParameterException
IOException
protected void writeFile(String filename,
Document doc)
throws InvalidParameterException,
IOException
InvalidParameterException
IOExceptionprotected Iterator<String> getFileList()
protected Document getDocumentForFile(String filename)
throws InvalidParameterException,
RuntimeException
InvalidParameterException
RuntimeExceptionpublic Document getFixedDocument(File file)
file - File the file trying to fix
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||