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)
writer
- public AbstractWriter(java.io.File file) throws java.io.FileNotFoundException
file
- java.io.FileNotFoundException
public AbstractWriter(java.lang.String filename) throws java.io.FileNotFoundException
filename
- file to createjava.io.FileNotFoundException
public AbstractWriter(java.io.OutputStream stream)
stream
-