Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

Method Summary
 String getPrintData(O o)
          Get the object's print data.
 O restoreObject(String s)
          Restores the object which is specified by the given String.
 

Method Detail

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

Release 0.2.1 (2009-07-13_1605)