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