public class CollectionObjectStream<E> extends java.lang.Object implements ObjectStream<E>
Constructor and Description |
---|
CollectionObjectStream(java.util.Collection<E> collection) |
Modifier and Type | Method and Description |
---|---|
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.
|
public CollectionObjectStream(java.util.Collection<E> collection)
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 java.lang.AutoCloseable
close
in interface ObjectStream<E>
Copyright © 2010 - 2020 Adobe. All Rights Reserved