|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileWriter
Describe a file writer, which performs file exploration.
Method Summary | |
---|---|
void |
close()
Terminate writing, close file. |
java.lang.String |
getFileName()
Get name of writing file. |
void |
writeBoolean(boolean b)
Write boolean (1 bit, true or false) |
void |
writeByte(byte b)
Write byte (1 byte, -128 to 127) |
void |
writeChar(char c)
Write char (2 bytes, 0 to 65535) |
void |
writeDouble(double d)
Write double (8 bytes, 4.94065645841246544e-324d to 1.79769313486231570e+308d) |
void |
writeFloat(float f)
Write float (4 bytes, 1.40129846432481707e-45 to 3.40282346638528860e+38) |
void |
writeInteger(int i)
Write integer (4 bytes, -2.147.483.648 to 2.147.483.647) |
void |
writeLong(long l)
Write long (8 bytes, -9.223.372.036.854.775.808 to 9.223.372.036.854.775.807) |
void |
writeShort(short s)
Write short (2 bytes, -32.768 to 32.767) |
void |
writeString(java.lang.String s)
Write a sequence of chars (2 bytes and more) |
Method Detail |
---|
void writeBoolean(boolean b) throws java.io.IOException
b
- boolean to write
java.io.IOException
- error on writing.void writeByte(byte b) throws java.io.IOException
b
- byte to write.
java.io.IOException
- error on writing.void writeChar(char c) throws java.io.IOException
c
- char to write.
java.io.IOException
- error on writing.void writeShort(short s) throws java.io.IOException
s
- short to write.
java.io.IOException
- error on writing.void writeInteger(int i) throws java.io.IOException
i
- integer to write.
java.io.IOException
- error on writing.void writeFloat(float f) throws java.io.IOException
f
- float to write.
java.io.IOException
- error on writing.void writeLong(long l) throws java.io.IOException
l
- long to write.
java.io.IOException
- error on writing.void writeDouble(double d) throws java.io.IOException
d
- double to write.
java.io.IOException
- error on writing.void writeString(java.lang.String s) throws java.io.IOException
s
- string to write.
java.io.IOException
- error on reading.void close() throws java.io.IOException
java.io.IOException
- error on closing.java.lang.String getFileName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |