@NotThreadSafe public class TarInputShop extends Object implements InputShop<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 behaviour.
TarOutputShop| Constructor and Description |
|---|
TarInputShop(TarDriver driver,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TarDriverEntry |
getEntry(String name) |
InputSocket<TarDriverEntry> |
getInputSocket(String name) |
int |
getSize() |
Iterator<TarDriverEntry> |
iterator() |
@CreatesObligation public TarInputShop(TarDriver driver, @WillNotClose InputStream in) throws EOFException, IOException
EOFExceptionIOExceptionpublic void close()
throws IOException
close in interface InputShop<TarDriverEntry>close in interface Closeableclose in interface AutoCloseableIOException@CheckForNull public final TarDriverEntry getEntry(String name)
getEntry in interface EntryContainer<TarDriverEntry>public InputSocket<TarDriverEntry> getInputSocket(String name)
getInputSocket in interface InputService<TarDriverEntry>public final int getSize()
getSize in interface EntryContainer<TarDriverEntry>public final Iterator<TarDriverEntry> iterator()
iterator in interface EntryContainer<TarDriverEntry>iterator in interface InputService<TarDriverEntry>iterator in interface Iterable<TarDriverEntry>Copyright © 2005–2016 Schlichtherle IT Services. All rights reserved.