leila.algorithm
Class OutputPairs

java.lang.Object
  extended by leila.algorithm.OutputPairs
All Implemented Interfaces:
java.io.Serializable

public class OutputPairs
extends java.lang.Object
implements java.io.Serializable

This class is part of LEILA (http://mpii.de/yago-naga/leila). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the author Fabian M. Suchanek (http://suchanek.name). OutputPairs.java represents a set of output pairs. This implementation writes them to a file.

See Also:
Serialized Form

Constructor Summary
OutputPairs(java.io.Writer o)
          Constructs a new set of Pairs, to be written to the writer
 
Method Summary
 void add(Pair p)
          Adds a new pair (writes it to the writer)
protected  void finalize()
          Closes the writer
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputPairs

public OutputPairs(java.io.Writer o)
Constructs a new set of Pairs, to be written to the writer

Method Detail

add

public void add(Pair p)
         throws java.lang.Exception
Adds a new pair (writes it to the writer)

Throws:
java.lang.Exception

finalize

protected void finalize()
                 throws java.lang.Exception
Closes the writer

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Exception