abstract class TarImporterBase<S extends TarInputStream,I extends StreamImporter<I>> extends AssignableBase<Archive<?>> implements StreamImporter<I>
Archive| Modifier and Type | Field and Description |
|---|---|
private static java.util.logging.Logger |
log
Logger
|
| Constructor and Description |
|---|
TarImporterBase(Archive<?> archive) |
| Modifier and Type | Method and Description |
|---|---|
private I |
covarientReturn()
Provides covarient return
|
(package private) abstract java.lang.Class<I> |
getActualClass()
Returns the actual class for this implementation
|
private S |
getInputStreamForFile(java.io.File file)
Obtains an implementation-specific stream to the specified
File |
(package private) abstract S |
getInputStreamForRawStream(java.io.InputStream in)
Obtains the correct
InputStream wrapper type for the specified raw data input |
I |
importFrom(java.io.File file)
Imports provided File as a
Archive. |
I |
importFrom(java.io.File file,
Filter<ArchivePath> filter)
Imports provided File as a
Archive. |
I |
importFrom(java.io.InputStream stream)
Imports provided stream as a
Archive. |
I |
importFrom(java.io.InputStream stream,
Filter<ArchivePath> filter)
Imports provided stream as a
Archive. |
private I |
importFrom(S stream,
Filter<ArchivePath> filter) |
as, getArchiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaspublic TarImporterBase(Archive<?> archive)
abstract java.lang.Class<I> getActualClass()
abstract S getInputStreamForRawStream(java.io.InputStream in) throws java.io.IOException
InputStream wrapper type for the specified raw data inputin - java.io.IOExceptionprivate I covarientReturn()
public I importFrom(java.io.InputStream stream) throws ArchiveImportException
Archive. It remains the responsibility of the caller to close the stream.importFrom in interface StreamImporter<I extends StreamImporter<I>>stream - the stream to import; should be a raw type, not wrapped in any implementation-specific encoding (ie.
FileInputStream is appropriate, but ZipInputStream or GZIPInputStream is not).ArchiveImportException - If an error occurred during the import processStreamImporter.importFrom(java.io.InputStream)public I importFrom(java.io.InputStream stream, Filter<ArchivePath> filter) throws ArchiveImportException
Archive. It remains the responsibility of the caller to close the stream.importFrom in interface StreamImporter<I extends StreamImporter<I>>stream - the stream to import; should be a raw type, not wrapped in any implementation-specific encoding (ie.
FileInputStream is appropriate, but ZipInputStream or GZIPInputStream is not).filter - Filter to match resultArchiveImportException - If an error occurred during the import processStreamImporter.importFrom(java.io.InputStream, Filter)private I importFrom(S stream, Filter<ArchivePath> filter) throws ArchiveImportException
ArchiveImportExceptionpublic I importFrom(java.io.File file) throws ArchiveImportException
Archive.importFrom in interface StreamImporter<I extends StreamImporter<I>>file - the file to importArchiveImportException - If an error occurred during the import processStreamImporter.importFrom(java.io.File)public I importFrom(java.io.File file, Filter<ArchivePath> filter) throws ArchiveImportException
Archive.importFrom in interface StreamImporter<I extends StreamImporter<I>>file - the file to importfilter - Filter to match resultArchiveImportException - If an error occurred during the import processStreamImporter.importFrom(java.io.File, Filter)private S getInputStreamForFile(java.io.File file) throws java.io.IOException
Filefile - To open a stream to, must be specifiedjava.io.IOException - If there was a problem getting an instream to the file