public abstract class Writer extends Object
| Constructor and Description |
|---|
Writer(Object obj)
Creates a new writer for the given object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getObject()
Returns the object of this writer.
|
void |
setObject(Object obj)
Sets the object of this writer.
|
void |
writeToFile(String filename)
Writes the object into the given file.
|
abstract String |
writeToString()
Writes the object into a string.
|
public Writer(Object obj)
obj - an object.public void setObject(Object obj)
public Object getObject()
public abstract String writeToString()
public void writeToFile(String filename) throws IOException
filename - the name of the file.IOExceptionCopyright © 2018. All rights reserved.