|
|||||||||
| 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 similar to a FileOutputStream
and is used for streaming/writing data out to a file, which you got
previously by calling getDataFile().
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(File file)
Constructs a new RobocodeFileOutputStream. |
|
RobocodeFileOutputStream(FileDescriptor fdObj)
Constructs a new RobocodeFileOutputStream. |
|
RobocodeFileOutputStream(String fileName)
Constructs a new RobocodeFileOutputStream. |
|
RobocodeFileOutputStream(String fileName,
boolean append)
Constructs a new RobocodeFileOutputStream. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this output stream. |
void |
flush()
Flushes this output stream. |
String |
getName()
Returns the filename of this output stream. |
void |
write(byte[] b)
Writes a byte array to this output stream. |
void |
write(byte[] b,
int off,
int len)
Writes a byte array to this output stream. |
void |
write(int b)
Writes a single byte to this output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RobocodeFileOutputStream(File file)
throws IOException
FileOutputStream.FileOutputStream(File)
for documentation about this constructor.
IOExceptionFileOutputStream.FileOutputStream(File)public RobocodeFileOutputStream(FileDescriptor fdObj)
FileOutputStream.FileOutputStream(FileDescriptor)
for documentation about this constructor.
FileOutputStream.FileOutputStream(FileDescriptor)
public RobocodeFileOutputStream(String fileName)
throws IOException
FileOutputStream.FileOutputStream(String)
for documentation about this constructor.
IOExceptionFileOutputStream.FileOutputStream(String)
public RobocodeFileOutputStream(String fileName,
boolean append)
throws IOException
FileOutputStream.FileOutputStream(String, boolean)
for documentation about this constructor.
IOExceptionFileOutputStream.FileOutputStream(String, boolean)| Method Detail |
|---|
public final void close()
throws IOException
FileOutputStream.close()
for documentation about this method.
close in interface Closeableclose in class OutputStreamIOExceptionFileOutputStream.close()
public final void flush()
throws IOException
OutputStream.flush()
for documentation about this method.
flush in interface Flushableflush in class OutputStreamIOExceptionOutputStream.flush()public final String getName()
public final void write(byte[] b)
throws IOException
FileOutputStream.write(byte[]) for documentation
about this method.
write in class OutputStreamIOExceptionFileOutputStream.write(byte[])
public final void write(byte[] b,
int off,
int len)
throws IOException
FileOutputStream.write(byte[], int, int) for
documentation about this method.
write in class OutputStreamIOExceptionFileOutputStream.write(byte[], int, int)
public final void write(int b)
throws IOException
FileOutputStream.write(int) for documentation about
this method.
write in class OutputStreamIOExceptionFileOutputStream.write(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||