public final class DelayedCreationFileWriter extends Writer
Unsynchronised. In practice, each
DelayedCreationFileWriter
is wrapped in a
PrintWriter
that provides adequate synchronisation.
Constructor and Description |
---|
DelayedCreationFileWriter(File file,
boolean append)
Constructor.
|
public DelayedCreationFileWriter(File file, boolean append)
file
- The file.append
- Whether to append to the file, or overwrite.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
- If an error occurs.public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
- If an error occurs.public void write(char[] bytes, int offset, int length) throws IOException
write
in class Writer
bytes
- Byte array.offset
- Offset into bytes
.length
- How many bytes to write.IOException
- If an error occurs.Copyright © 2000-2014. All Rights Reserved.