de.fu_berlin.ties
Interface Closeable

All Known Implementing Classes:
AverageLength, ClassTrain, CollectingProcessor, MistakeAnalyzer, PredictionEvaluator, ShuffleGenerator, TaskRunner, TextFilter, TrainEval

public interface Closeable

Classes implementing this interface announce that they should be closed for releasing all resources and stopping any background activity. The creator of a closeable instance is responsible for calling the close(int) when the instance is no longer in use.

Version:
$Revision: 1.7 $, $Date: 2006/10/21 16:03:52 $, $Author: siefkes $
Author:
Christian Siefkes

Method Summary
 void close(int errorCount)
          Closes this instance, releasing all resources and stopping any background threads.
 

Method Detail

close

void close(int errorCount)
           throws IOException,
                  ProcessingException
Closes this instance, releasing all resources and stopping any background threads.

Parameters:
errorCount - the number of errors (exceptions) that occurred during calls to this instance (0 if none)
Throws:
IOException - if an I/O error occurs
ProcessingException - if an error occurs during processing any remaining input


Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.