Package robocode
Class RobocodeFileWriter
java.lang.Object
java.io.Writer
java.io.OutputStreamWriter
robocode.RobocodeFileWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
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).
- Author:
- Mathew A. Nelson (original), Flemming N. Larsen (contributor)
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRobocodeFileWriter(File file) Constructs a new RobocodeFileWriter.Constructs a new RobocodeFileWriter.RobocodeFileWriter(String fileName) Constructs a new RobocodeFileWriter.RobocodeFileWriter(String fileName, boolean append) Constructs a new RobocodeFileWriter. -
Method Summary
Methods inherited from class java.io.OutputStreamWriter
append, append, close, flush, getEncoding, write, write, writeMethods inherited from class java.io.Writer
append, nullWriter, write, write
-
Constructor Details
-
RobocodeFileWriter
Constructs a new RobocodeFileWriter. SeeFileWriter(File)for documentation about this constructor.- Parameters:
file- the file to write to.- Throws:
IOException- if an I/O exception occurs.- See Also:
-
RobocodeFileWriter
Constructs a new RobocodeFileWriter. SeeFileWriter(FileDescriptor)for documentation about this constructor.- Parameters:
fd- the file descriptor of the file to write to.- See Also:
-
RobocodeFileWriter
Constructs a new RobocodeFileWriter. SeeFileWriter(String)for documentation about this constructor.- Parameters:
fileName- the filename of the file to write to.- Throws:
IOException- if an I/O exception occurs.- See Also:
-
RobocodeFileWriter
Constructs a new RobocodeFileWriter. SeeFileWriter(String, boolean)for documentation about this constructor.- Parameters:
fileName- the filename of the file to write to.append- set this to true if the output must be appended to the file.- Throws:
IOException- if an I/O exception occurs.- See Also:
-