robocode

Class RobocodeFileWriter


public class RobocodeFileWriter
extends OutputStreamWriter

RobocodeFileWriter is similar to a FileWriter and is used for writing data out to a file, which you got by calling getDataFile().

You should read FileWriter for documentation of this class.

Please notice that the max. size of your data file is set to 200000 (~195 KB).

Authors:
Mathew A. Nelson (original)
Flemming N. Larsen (contributor)
See Also:
AdvancedRobot.getDataFile(String), FileWriter

Constructor Summary

RobocodeFileWriter(File file)
Constructs a new RobocodeFileWriter.
RobocodeFileWriter(FileDescriptor fd)
Constructs a new RobocodeFileWriter.
RobocodeFileWriter(String fileName)
Constructs a new RobocodeFileWriter.
RobocodeFileWriter(String fileName, boolean append)
Constructs a new RobocodeFileWriter.

Constructor Details

RobocodeFileWriter

public RobocodeFileWriter(File file)
            throws IOException
Parameters:
file - the file to write to.

RobocodeFileWriter

public RobocodeFileWriter(FileDescriptor fd)
Parameters:
fd - the file descriptor of the file to write to.

RobocodeFileWriter

public RobocodeFileWriter(String fileName)
            throws IOException
Parameters:
fileName - the filename of the file to write to.

RobocodeFileWriter

public RobocodeFileWriter(String fileName,
                          boolean append)
            throws IOException
Parameters:
fileName - the filename of the file to write to.
append - set this to true if the output must be appended to the file.