public class InteractiveHistoryReaderImpl extends java.lang.Object implements InteractiveHistoryReader
Constructor and Description |
---|
InteractiveHistoryReaderImpl(HistoryImpl history)
Creates an instance of InteractiveHistoryReaderImpl by
specifying the corresponding history implementation.
|
Modifier and Type | Method and Description |
---|---|
HistoryQuery |
findByKeyword(java.lang.String keyword,
java.lang.String field,
int recordCount)
Searches the history for all records containing the keyword.
|
HistoryQuery |
findByKeywords(java.lang.String[] keywords,
java.lang.String field,
int recordCount)
Searches the history for all records containing all keywords.
|
public InteractiveHistoryReaderImpl(HistoryImpl history)
history
- the corresponding HistoryImpl to read frompublic HistoryQuery findByKeyword(java.lang.String keyword, java.lang.String field, int recordCount)
findByKeyword
in interface InteractiveHistoryReader
keyword
- the keyword to search forfield
- the field where to look for the keywordrecordCount
- limits the result to this record countjava.lang.RuntimeException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.public HistoryQuery findByKeywords(java.lang.String[] keywords, java.lang.String field, int recordCount)
findByKeywords
in interface InteractiveHistoryReader
keywords
- array of keywords we search forfield
- the field where to look for the keywordrecordCount
- limits the result to this record countjava.lang.RuntimeException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.