|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SceneWriter
A simple output class to write values to a file. Based on FileOutput from Graham Roberts
Constructor Summary | |
SceneWriter(java.io.File f)
Construct SceneWriter object given a file. |
|
SceneWriter(java.io.OutputStream os)
Create a SceneWriter from a stream |
Method Summary | |
void |
close()
Close the file when finished |
void |
flush()
Flush the writer |
void |
writeChar(char c)
Write a char value to a file. |
void |
writeDouble(double d)
Write a double value. |
void |
writeFloat(float f)
Write a float value. |
void |
writeInt(int i)
Write an int value to a file. |
void |
writeLong(long l)
Write a long value. |
void |
writeNewline()
Write a newline to a file. |
void |
writeString(java.lang.String s)
Write a String value to a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SceneWriter(java.io.File f) throws java.lang.Exception
f
- the file to read frompublic SceneWriter(java.io.OutputStream os) throws java.lang.Exception
os
- the stream specifying the file locationMethod Detail |
public void close() throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public final void writeInt(int i) throws java.io.IOException
i
- the int to write
java.io.IOException
public final void writeLong(long l) throws java.io.IOException
l
- the long to write
java.io.IOException
public final void writeDouble(double d) throws java.io.IOException
d
- the double to write
java.io.IOException
public final void writeFloat(float f) throws java.io.IOException
f
- the float to write
java.io.IOException
public final void writeChar(char c) throws java.io.IOException
c
- the char to write
java.io.IOException
public final void writeString(java.lang.String s) throws java.io.IOException
s
- the string to write
java.io.IOException
public final void writeNewline() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |