|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | 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
public void flush() throws java.io.IOException
public final void writeInt(int i) throws java.io.IOException
i
- the int to writepublic final void writeLong(long l) throws java.io.IOException
l
- the long to writepublic final void writeDouble(double d) throws java.io.IOException
d
- the double to writepublic final void writeFloat(float f) throws java.io.IOException
f
- the float to writepublic final void writeChar(char c) throws java.io.IOException
c
- the char to writepublic final void writeString(java.lang.String s) throws java.io.IOException
s
- the string to writepublic final void writeNewline() throws java.io.IOException
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |