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 Closeableclose in interface AutoCloseableclose in class WriterIOException - If an error occurs.public void flush()
throws IOException
flush in interface Flushableflush in class WriterIOException - If an error occurs.public void write(char[] bytes,
int offset,
int length)
throws IOException
write in class Writerbytes - Byte array.offset - Offset into bytes.length - How many bytes to write.IOException - If an error occurs.Copyright © 2000-2014. All Rights Reserved.