public class RobocodeFileWriter extends OutputStreamWriter
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).
AdvancedRobot.getDataFile(String),
FileWriter| Constructor and Description |
|---|
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.
|
close, flush, getEncoding, write, write, writepublic RobocodeFileWriter(File file) throws IOException
FileWriter(File) for documentation about
this constructor.file - the file to write to.IOException - if an I/O exception occurs.FileWriter(File)public RobocodeFileWriter(FileDescriptor fd)
FileWriter(FileDescriptor) for
documentation about this constructor.fd - the file descriptor of the file to write to.FileWriter(FileDescriptor)public RobocodeFileWriter(String fileName) throws IOException
FileWriter(String) for documentation about
this constructor.fileName - the filename of the file to write to.IOException - if an I/O exception occurs.FileWriter(String)public RobocodeFileWriter(String fileName, boolean append) throws IOException
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.IOException - if an I/O exception occurs.FileWriter(String, boolean)Copyright © 2021 Robocode. All Rights Reserved.