
com.buschmais.jqassistant.plugin.common.impl.scanner.TarArchiveInputStreamScannerPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
The jQAssistant Plugin Common provides a set of common
classes which can be used by all jQAssistant plugins.
The newest version!
package com.buschmais.jqassistant.plugin.common.impl.scanner;
import java.io.IOException;
import com.buschmais.jqassistant.core.scanner.api.ScannerContext;
import com.buschmais.jqassistant.plugin.common.api.model.TarArchiveDescriptor;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;
public class TarArchiveInputStreamScannerPlugin extends AbstractArchiveInputStreamScannerPlugin {
@Override
public Class extends TarArchiveInputStream> getType() {
return TarArchiveInputStream.class;
}
@Override
public Class getDescriptorType() {
return TarArchiveDescriptor.class;
}
@Override
protected TarArchiveDescriptor getContainerDescriptor(TarArchiveInputStream item, ScannerContext scannerContext) {
return scannerContext.getStore().create(TarArchiveDescriptor.class);
}
@Override
protected TarArchiveEntry getNextEntry(TarArchiveInputStream container) throws IOException {
return container.getNextTarEntry();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy