Mercurial > hg > RemoteEditor > REPSessionManager
view test/XMLTest.java @ 39:c873ee0318f8
*** empty log message ***
author | pin |
---|---|
date | Sat, 10 Nov 2007 21:06:18 +0900 |
parents | 30e46b8e4a87 |
children | 86a1553028ad |
line wrap: on
line source
package test; import rep.Editor; import rep.Session; import rep.SessionList; public class XMLTest { public static void main(String[] args){ Editor editor = new Editor(0, null); editor.setHost("testhost"); editor.setPort("testport"); editor.setName("testfilename"); Editor editor2 = new Editor(1, null); editor2.setHost("testhost2"); editor2.setPort("testport2"); //editor2.setName("null"); //Session session = new Session(0, "file", null); //session.addEditor(editor); Session session = new Session(editor); session.addEditor(editor); session.addEditor(editor2); SessionList sessionlist = new SessionList(); sessionlist.addSession(session); SessionXMLEncoder encoder = new SessionXMLEncoder(sessionlist.getList()); encoder.sessionListToXML(); //list.getXML(); } }