E
- the type of the entries.public interface OutputService<E extends Entry> extends EntryContainer<E>
All methods of this interface must reflect all entries, including those
which have only been partially written yet, i.e. which have not already
received a call to their close()
method.
InputService
Modifier and Type | Method and Description |
---|---|
OutputSocket<? extends E> |
getOutputSocket(E entry)
Returns an output socket for writing to the given entry.
|
Iterator<E> |
iterator()
Returns a new iterator for all entries in this container.
|
getEntry, getSize
forEach, spliterator
OutputSocket<? extends E> getOutputSocket(E entry)
entry
- the entry, which will be the
local target
of the returned
output socket.Iterator<E> iterator()
First, the iteration must be consistent: Multiple iterators must iterate the same entries in the same order again unless the set of entries has changed.
Next, the iteration should also reflect the natural order of the entries in this container. For example, if this container represents an archive file, the iteration should reflect the natural order of the entries in the archive file.
The iterator returned by this method must be unmodifiable.
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.