public final class ChatTranscripts
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
appendToTranscript(java.lang.String jid,
ChatTranscript transcript)
Appends the given ChatTranscript to the transcript file associated with a JID.
|
static ChatTranscript |
getChatTranscript(java.lang.String jid)
Retrieve the full chat history.
|
static ChatTranscript |
getCurrentChatTranscript(java.lang.String jid)
Retrieve the current chat history.
|
static java.io.File |
getCurrentHistoryFile(java.lang.String jid)
Returns the current transcript (20 messages) for a particular jid.
|
static ChatTranscript |
getTranscript(java.io.File transcriptFile)
Reads in the transcript file using the Xml Pull Parser.
|
static java.io.File |
getTranscriptFile(java.lang.String jid)
Returns the settings file.
|
public static void appendToTranscript(java.lang.String jid, ChatTranscript transcript)
jid
- the jid of the user.transcript
- the ChatTranscript.public static ChatTranscript getCurrentChatTranscript(java.lang.String jid)
jid
- the jid of the user whos history you wish to retrieve.public static ChatTranscript getChatTranscript(java.lang.String jid)
jid
- the jid of the the user whos history you wish to retrieve.public static ChatTranscript getTranscript(java.io.File transcriptFile)
transcriptFile
- the transcript file to read.public static java.io.File getTranscriptFile(java.lang.String jid)
jid
- thepublic static java.io.File getCurrentHistoryFile(java.lang.String jid)
jid
- the jid of the user.