opennlp.tools.util
Class HashSumEventStream

java.lang.Object
  extended by opennlp.tools.util.HashSumEventStream
All Implemented Interfaces:
opennlp.model.EventStream

Deprecated.

@Deprecated
public class HashSumEventStream
extends Object
implements opennlp.model.EventStream


Constructor Summary
HashSumEventStream(opennlp.model.EventStream eventStream)
          Deprecated.  
 
Method Summary
 BigInteger calculateHashSum()
          Deprecated. Calculates the hash sum of the stream.
 boolean hasNext()
          Deprecated.  
 opennlp.model.Event next()
          Deprecated.  
 void remove()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashSumEventStream

public HashSumEventStream(opennlp.model.EventStream eventStream)
Deprecated. 
Method Detail

hasNext

public boolean hasNext()
                throws IOException
Deprecated. 
Specified by:
hasNext in interface opennlp.model.EventStream
Throws:
IOException

next

public opennlp.model.Event next()
                         throws IOException
Deprecated. 
Specified by:
next in interface opennlp.model.EventStream
Throws:
IOException

calculateHashSum

public BigInteger calculateHashSum()
Deprecated. 
Calculates the hash sum of the stream. The method must be called after the stream is completely consumed.

Returns:
the hash sum
Throws:
IllegalStateException - if the stream is not consumed completely, completely means that hasNext() returns false

remove

public void remove()
Deprecated. 


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.