|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.util.CollectionObjectStream<E>
public class CollectionObjectStream<E>
Constructor Summary | |
---|---|
CollectionObjectStream(java.util.Collection<E> collection)
|
Method Summary | |
---|---|
void |
close()
Closes the ObjectStream and releases all allocated
resources. |
E |
read()
Returns the next object. |
void |
reset()
Repositions the stream at the beginning and the previously seen object sequence will be repeated exactly. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionObjectStream(java.util.Collection<E> collection)
Method Detail |
---|
public E read()
ObjectStream
read
in interface ObjectStream<E>
public void reset()
ObjectStream
reset
in interface ObjectStream<E>
public void close()
ObjectStream
ObjectStream
and releases all allocated
resources. After close was called its not allowed to call
read or reset.
close
in interface ObjectStream<E>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |