public abstract class AbstractWriter extends Object
| Constructor and Description |
|---|
AbstractWriter(File file)
Constructs a writer to write content into a file.
|
AbstractWriter(OutputStream stream)
Constructs a writer to write content into a given stream.
|
AbstractWriter(String filename)
Constructs a writer to write content into a file.
|
AbstractWriter(Writer writer)
Constructs a writer to write content into a given Writer instance.
|
protected Writer writer
public AbstractWriter(Writer writer)
writer - public AbstractWriter(File file) throws FileNotFoundException
file - FileNotFoundExceptionpublic AbstractWriter(String filename) throws FileNotFoundException
filename - file to createFileNotFoundExceptionpublic AbstractWriter(OutputStream stream)
stream - public void close()
throws IOException
IOException - if an I/O error occurspublic void flush()
throws IOException
IOException - if an I/O error occurs