robocode
Class RobocodeFileWriter
java.io.OutputStreamWriter
robocode.RobocodeFileWriter
public class RobocodeFileWriter
extends java.io.OutputStreamWriter
RobocodeFileWriter is similar to a
java.io.FileWriter
and is used for
writing data out to a file, which you got by calling
getDataFile()
.
You should read
java.io.FileWriter
for documentation of this class.
Please notice that the max. size of your data file is set to 200000
(~195 KB).
- Mathew A. Nelson (original)
- Flemming N. Larsen (contributor)
RobocodeFileWriter
public RobocodeFileWriter(File file)
throws IOException
Constructs a new RobocodeFileWriter.
See java.io.FileWriter.FileWriter(File)
for documentation about
this constructor.
file
- the file to write to.
java.io.FileWriter.FileWriter(File)
RobocodeFileWriter
public RobocodeFileWriter(FileDescriptor fd)
Constructs a new RobocodeFileWriter.
See java.io.FileWriter.FileWriter(FileDescriptor)
for
documentation about this constructor.
fd
- the file descriptor of the file to write to.
java.io.FileWriter.FileWriter(FileDescriptor)
RobocodeFileWriter
public RobocodeFileWriter(String fileName)
throws IOException
Constructs a new RobocodeFileWriter.
See java.io.FileWriter.FileWriter(String)
for documentation about
this constructor.
fileName
- the filename of the file to write to.
java.io.FileWriter.FileWriter(String)
RobocodeFileWriter
public RobocodeFileWriter(String fileName,
boolean append)
throws IOException
Constructs a new RobocodeFileWriter.
See java.io.FileWriter.FileWriter(String, boolean)
for
documentation about this constructor.
fileName
- the filename of the file to write to.append
- set this to true if the output must be appended to the file.
java.io.FileWriter.FileWriter(String, boolean)