|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
robocode.RobocodeFileOutputStream
public class RobocodeFileOutputStream
RobocodeFileOutputStream is used for streaming/writing data out to a file,
which you got by calling AdvancedRobot.getDataFile(String)
.
You should read java.io.FileOutputStream for documentation of this class.
Please notice that the max. size of your data file is set to 200000 (~195 KB).
AdvancedRobot.getDataFile(String)
,
FileOutputStream
Constructor Summary | |
---|---|
RobocodeFileOutputStream(java.io.File file)
RobocodeFileOutputStream constructor -- see FileOutputStream for docs! |
|
RobocodeFileOutputStream(java.io.FileDescriptor fdObj)
RobocodeFileOutputStream constructor -- see FileOutputStream for docs! |
|
RobocodeFileOutputStream(java.lang.String name)
RobocodeFileOutputStream constructor -- see FileOutputStream for docs! |
|
RobocodeFileOutputStream(java.lang.String name,
boolean append)
RobocodeFileOutputStream constructor -- see FileOutputStream for docs! |
Method Summary | |
---|---|
void |
close()
See java.io.FileOutputStream |
void |
flush()
See java.io.FileOutputStream |
java.lang.String |
getName()
Returns the filename |
void |
setFileOutputStream(java.io.FileOutputStream out)
The system calls this method, you should not call it. |
static void |
setThreadManager(robocode.manager.ThreadManager threadManager)
The system calls this method, you should not call it. |
void |
write(byte[] b)
See java.io.FileOutputStream |
void |
write(byte[] b,
int off,
int len)
See java.io.FileOutputStream |
void |
write(int b)
See java.io.FileOutputStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RobocodeFileOutputStream(java.io.File file) throws java.io.IOException
java.io.IOException
FileOutputStream
public RobocodeFileOutputStream(java.io.FileDescriptor fdObj)
FileOutputStream
public RobocodeFileOutputStream(java.lang.String name) throws java.io.IOException
java.io.IOException
FileOutputStream
public RobocodeFileOutputStream(java.lang.String name, boolean append) throws java.io.IOException
java.io.IOException
FileOutputStream
Method Detail |
---|
public final void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
FileOutputStream
public final void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
FileOutputStream
public final java.lang.String getName()
public final void setFileOutputStream(java.io.FileOutputStream out)
public static final void setThreadManager(robocode.manager.ThreadManager threadManager)
public final void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
FileOutputStream
public final void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
FileOutputStream
public final void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
FileOutputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |