@NotThreadSafe
public class StreamedMessagesReader
extends Object
implements Iterator<Serializable>, Iterable<Serializable>
| Constructor and Description |
|---|
StreamedMessagesReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the current file.
|
boolean |
hasNext() |
Iterator<Serializable> |
iterator() |
Serializable |
next() |
void |
open(File file,
Optional<Charset> charset)
Opens an input.
|
void |
open(InputStream inputStream,
Optional<Charset> charset)
Opens an input.
|
void |
open(Reader reader)
Opens an input.
|
void |
open(XMLElement parentElement)
Opens an input.
|
void |
remove() |
boolean |
setUp(Optional<KeyedGroups> configProperties,
Optional<KeyedValues> moduleProperties)
Sets up this.
|
void |
tearDown()
Tears down what has been set up.
|
public void close()
public boolean hasNext()
hasNext in interface Iterator<Serializable>public Iterator<Serializable> iterator()
iterator in interface Iterable<Serializable>public Serializable next()
next in interface Iterator<Serializable>public void open(@Nonnull
Reader reader)
reader - The input reader.public void open(@Nonnull
XMLElement parentElement)
parentElement - The input parent element.public void open(@Nonnull
File file,
@Nonnull
Optional<Charset> charset)
throws FileNotFoundException
file - The input file.charset - A charset (may be null).FileNotFoundException - When the file is not found.public void open(@Nonnull
InputStream inputStream,
@Nonnull
Optional<Charset> charset)
inputStream - The input stream.charset - A charset (may be null).public void remove()
remove in interface Iterator<Serializable>public void tearDown()
@CheckReturnValue
public boolean setUp(@Nonnull
Optional<KeyedGroups> configProperties,
@Nonnull
Optional<KeyedValues> moduleProperties)
configProperties - The optional configuration properties.moduleProperties - The optional module properties.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.