public abstract static class Streamer.Input
extends Object
implements Iterator<Serializable>, Iterable<Serializable>
Modifier | Constructor and Description |
---|---|
protected |
Input()
Constructs an input.
|
protected |
Input(File file,
Optional<Charset> charset)
Constructs an input.
|
protected |
Input(InputStream inputStream,
Optional<Charset> charset)
Constructs an input.
|
protected |
Input(Reader reader)
Constructs an input.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Closes the input.
|
protected Optional<Reader> |
getReader()
Gets the reader.
|
Iterator<Serializable> |
iterator() |
abstract Serializable |
next() |
void |
remove() |
abstract boolean |
skip()
Skips the next entry.
|
protected Input()
protected Input(@Nonnull Reader reader)
reader
- A reader.protected Input(@Nonnull File file, @Nonnull Optional<Charset> charset) throws FileNotFoundException
file
- An input file.charset
- An optional charset.FileNotFoundException
- When the file is not found.protected Input(@Nonnull InputStream inputStream, @Nonnull Optional<Charset> charset)
inputStream
- An input stream.charset
- An optional charset.public abstract void close()
public Iterator<Serializable> iterator()
iterator
in interface Iterable<Serializable>
public abstract Serializable next()
next
in interface Iterator<Serializable>
public void remove()
remove
in interface Iterator<Serializable>
@CheckReturnValue public abstract boolean skip()
@Nonnull @CheckReturnValue protected Optional<Reader> getReader()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.