public class CollectionObjectStream<E> extends Object implements ObjectStream<E>
| Constructor and Description | 
|---|
| CollectionObjectStream(Collection<E> collection) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Closes the  ObjectStreamand 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(Collection<E> collection)
public E read()
ObjectStreamread in interface ObjectStream<E>public void reset()
ObjectStreamreset in interface ObjectStream<E>public void close()
ObjectStreamObjectStream and releases all allocated
 resources. After close was called its not allowed to call
 read or reset.close in interface AutoCloseableclose in interface ObjectStream<E>Copyright © 2017 The Apache Software Foundation. All rights reserved.