@NotThreadSafe public final class TarInputService extends java.lang.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(net.java.truevfs.kernel.spec.FsModel model,
net.java.truecommons.io.Source source,
TarDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TarDriverEntry |
entry(java.lang.String name) |
net.java.truecommons.cio.InputSocket<TarDriverEntry> |
input(java.lang.String name) |
java.util.Iterator<TarDriverEntry> |
iterator() |
int |
size() |
@CreatesObligation
public TarInputService(net.java.truevfs.kernel.spec.FsModel model,
net.java.truecommons.io.Source source,
TarDriver driver)
throws java.io.IOException
java.io.IOExceptionpublic int size()
size in interface net.java.truecommons.cio.Container<TarDriverEntry>public java.util.Iterator<TarDriverEntry> iterator()
iterator in interface java.lang.Iterable<TarDriverEntry>iterator in interface net.java.truecommons.cio.Container<TarDriverEntry>@CheckForNull public TarDriverEntry entry(java.lang.String name)
entry in interface net.java.truecommons.cio.Container<TarDriverEntry>public net.java.truecommons.cio.InputSocket<TarDriverEntry> input(java.lang.String name)
input in interface net.java.truecommons.cio.InputService<TarDriverEntry>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface net.java.truecommons.shed.Stream<TarDriverEntry>java.io.IOException