Updated handling of history by adding two things.

1) Appending to file rather than full overwrite.
2) Reading using XPP (XML Pull Parser)

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@6632 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-01-09 07:41:20 +00:00
committed by derek
parent 0745f3b72c
commit cec7a7e995
4 changed files with 213 additions and 203 deletions

View File

@ -94,7 +94,7 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
private final List packetIDList;
private final List messageListeners;
private List transcript;
private List<Message> transcript;
private List fileDropListeners;
/**
@ -110,7 +110,7 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
bottomPanel = new JPanel();
messageListeners = new ArrayList();
transcript = new ArrayList();
transcript = new ArrayList<Message>();
editorBar = new JPanel(new FlowLayout(FlowLayout.LEFT, 1, 1));
fileDropListeners = new ArrayList();
@ -529,7 +529,7 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
*
* @return - the map of current chat responses.
*/
public List getTranscripts() {
public List<Message> getTranscripts() {
return transcript;
}