public abstract class AbstractWriter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.io.Writer |
writer |
| Constructor and Description |
|---|
AbstractWriter(java.io.File file)
Constructs a writer to write content into a file.
|
AbstractWriter(java.io.OutputStream stream)
Constructs a writer to write content into a given stream.
|
AbstractWriter(java.lang.String filename)
Constructs a writer to write content into a file.
|
AbstractWriter(java.io.Writer writer)
Constructs a writer to write content into a given Writer instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stream.
|
void |
flush()
Flush the stream.
|
public AbstractWriter(java.io.Writer writer)
public AbstractWriter(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic AbstractWriter(java.lang.String filename)
throws java.io.FileNotFoundException
filename - file to createjava.io.FileNotFoundExceptionpublic AbstractWriter(java.io.OutputStream stream)