Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/scripting
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15769/src/games/stendhal/client/scripting
Modified Files:
ScriptRecorder.java
Log Message:
don't depend on default encoding
Index: ScriptRecorder.java
===================================================================
RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/scripting/ScriptRecorder.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** ScriptRecorder.java 19 Sep 2010 02:19:59 -0000 1.15
--- ScriptRecorder.java 10 Jan 2013 23:21:33 -0000 1.16
***************
*** 1,5 ****
- /* $Id$ */
/***************************************************************************
! * (C) Copyright 2003-2010 - Stendhal *
***************************************************************************
***************************************************************************
--- 1,4 ----
/***************************************************************************
! * (C) Copyright 2003-2013 - Stendhal *
***************************************************************************
***************************************************************************
***************
*** 13,26 ****
package games.stendhal.client.scripting;
- import games.stendhal.client.gui.j2DClient;
import games.stendhal.client.entity.User;
import games.stendhal.client.gui.chatlog.StandardEventLine;
! import java.io.FileNotFoundException;
import java.io.PrintStream;
/**
* Record chat/commands.
! *
* @author hendrik
*/
--- 12,25 ----
package games.stendhal.client.scripting;
import games.stendhal.client.entity.User;
+ import games.stendhal.client.gui.j2DClient;
import games.stendhal.client.gui.chatlog.StandardEventLine;
! import java.io.IOException;
import java.io.PrintStream;
/**
* Record chat/commands.
! *
* @author hendrik
*/
***************
*** 37,47 ****
/**
* Creates a new ScriptRecorder.
! *
* @param classname
* Name of Class to record
! * @throws FileNotFoundException
! * if the file cannot be created
*/
! public ScriptRecorder(final String classname) throws FileNotFoundException {
this.classname = classname;
filename = System.getProperty("java.io.tmpdir") + "/" + classname
--- 36,46 ----
/**
* Creates a new ScriptRecorder.
! *
* @param classname
* Name of Class to record
! * @throws IOException
! * in case of an input/output error
*/
! public ScriptRecorder(final String classname) throws IOException {
this.classname = classname;
filename = System.getProperty("java.io.tmpdir") + "/" + classname
***************
*** 49,53 ****
j2DClient.get().addEventLine(new StandardEventLine("Starting recoding to " + filename));
lastTimestamp = 0;
! ps = new PrintStream(filename);
}
--- 48,52 ----
j2DClient.get().addEventLine(new StandardEventLine("Starting recoding to " + filename));
lastTimestamp = 0;
! ps = new PrintStream(filename, "UTF-8");
}
***************
*** 73,77 ****
/**
* Records a chat/command.
! *
* @param text
* command to record
--- 72,76 ----
/**
* Records a chat/command.
! *
* @param text
* command to record
|