Package org.javlo.io
Class AppendableTextFile
- java.lang.Object
-
- org.javlo.io.AppendableTextFile
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class AppendableTextFile extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description AppendableTextFile(File file)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
finalize()
File
getFile()
protected BufferedWriter
getWriter()
boolean
isAutoFlush()
static void
main(String[] args)
void
print(String line)
void
println(String line)
void
setAutoFlush(boolean autoFlush)
-
-
-
Constructor Detail
-
AppendableTextFile
public AppendableTextFile(File file) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getWriter
protected BufferedWriter getWriter() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
finalize
protected void finalize() throws Throwable
-
println
public void println(String line) throws IOException
- Throws:
IOException
-
print
public void print(String line) throws IOException
- Throws:
IOException
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
getFile
public File getFile()
-
isAutoFlush
public boolean isAutoFlush()
-
setAutoFlush
public void setAutoFlush(boolean autoFlush)
-
-