public class FileWriterImpl extends java.lang.Object implements FileWriter
Constructor and Description |
---|
FileWriterImpl(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
getFileName() |
void |
writeBoolean(boolean b) |
void |
writeByte(byte b) |
void |
writeChar(char c) |
void |
writeDouble(double f) |
void |
writeFloat(float f) |
void |
writeInteger(int i) |
void |
writeLong(long l) |
void |
writeShort(short s) |
void |
writeString(java.lang.String s) |
public FileWriterImpl(java.lang.String filename) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void writeBoolean(boolean b) throws java.io.IOException
writeBoolean
in interface FileWriter
java.io.IOException
public void writeByte(byte b) throws java.io.IOException
writeByte
in interface FileWriter
java.io.IOException
public void writeChar(char c) throws java.io.IOException
writeChar
in interface FileWriter
java.io.IOException
public void writeShort(short s) throws java.io.IOException
writeShort
in interface FileWriter
java.io.IOException
public void writeInteger(int i) throws java.io.IOException
writeInteger
in interface FileWriter
java.io.IOException
public void writeFloat(float f) throws java.io.IOException
writeFloat
in interface FileWriter
java.io.IOException
public void writeLong(long l) throws java.io.IOException
writeLong
in interface FileWriter
java.io.IOException
public void writeDouble(double f) throws java.io.IOException
writeDouble
in interface FileWriter
java.io.IOException
public void writeString(java.lang.String s) throws java.io.IOException
writeString
in interface FileWriter
java.io.IOException
public void close() throws java.io.IOException
close
in interface FileWriter
java.io.IOException
public java.lang.String getFileName()
getFileName
in interface FileWriter