de.lmu.ifi.dbs.elki.utilities.output
Interface ObjectPrinter<O>
- Type Parameters:
O
- Object type
public interface ObjectPrinter<O>
Helper interface for writing objects to output (e.g. to a file) in a user readable
string representation and for later restoring the objects from this
string representation.
- Author:
- Elke Achtert
getPrintData
String getPrintData(O o)
- Get the object's print data.
- Parameters:
o
- the object to be printed
- Returns:
- result a string containing the output
restoreObject
O restoreObject(String s)
- Restores the object which is specified by the given String.
- Parameters:
s
- the string that specifies the object to be restored
- Returns:
- the restored object