|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.fs.archive.FsDefaultArchiveController.DummyInputService<E>
private static final class FsDefaultArchiveController.DummyInputService<E extends Entry>
A dummy input service to substitute for null.
| Constructor Summary | |
|---|---|
private |
FsDefaultArchiveController.DummyInputService()
|
| Method Summary | |
|---|---|
void |
close()
|
E |
getEntry(String name)
Returns the entry for the given name or
null if no entry with this name exists in this container. |
InputSocket<? extends E> |
getInputSocket(String name)
Returns an input socket for read access to the given entry. |
int |
getSize()
Returns the number of entries in this container. |
Iterator<E> |
iterator()
Returns a new iterator over all entries in this container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private FsDefaultArchiveController.DummyInputService()
| Method Detail |
|---|
public void close()
throws IOException
close in interface CloseableIOExceptionpublic int getSize()
EntryContainer
getSize in interface EntryContainer<E extends Entry>public Iterator<E> iterator()
EntryContainerFirst, 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.
iterator in interface EntryContainer<E extends Entry>iterator in interface Iterable<E extends Entry>null iterator over all entries in this
container.public E getEntry(String name)
EntryContainername or
null if no entry with this name exists in this container.
getEntry in interface EntryContainer<E extends Entry>name - an entry name.
name or
null if no entry with this name exists in this container.public InputSocket<? extends E> getInputSocket(String name)
InputService
getInputSocket in interface InputService<E extends Entry>name - a non-null entry name.
|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||