@NotThreadSafe public final class TarInputService extends Object implements net.java.truecommons.cio.InputService<TarDriverEntry>
Note that the constructor of this class extracts each entry in the archive to a temporary file! This may be very time and space consuming for large archives, but is the fastest implementation for subsequent random access, since there is no way the archive driver could predict the client application's behavior.
TarOutputService| Constructor and Description |
|---|
TarInputService(FsModel model,
net.java.truecommons.io.Source source,
TarDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TarDriverEntry |
entry(String name) |
net.java.truecommons.cio.InputSocket<TarDriverEntry> |
input(String name) |
Iterator<TarDriverEntry> |
iterator() |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliterator@CreatesObligation public TarInputService(FsModel model, net.java.truecommons.io.Source source, TarDriver driver) throws EOFException, IOException
EOFExceptionIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface net.java.truecommons.shed.Stream<TarDriverEntry>IOException@CheckForNull public TarDriverEntry entry(String name)
entry in interface net.java.truecommons.cio.Container<TarDriverEntry>public net.java.truecommons.cio.InputSocket<TarDriverEntry> input(String name)
input in interface net.java.truecommons.cio.InputService<TarDriverEntry>public Iterator<TarDriverEntry> iterator()
iterator in interface Iterable<TarDriverEntry>iterator in interface net.java.truecommons.cio.Container<TarDriverEntry>public int size()
size in interface net.java.truecommons.cio.Container<TarDriverEntry>Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.