public class TarFileReader extends Object
FileHandler.| Constructor and Description |
|---|
TarFileReader() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
read(File file,
FileHandler handler,
boolean gzipped)
Reads the given file as tar file and forwards the single streams for the
files within the tar file to the given
FileHandler. |
protected Set<String> |
read(org.apache.commons.compress.archivers.tar.TarArchiveInputStream tarStream,
FileHandler handler) |
public Set<String> read(File file, FileHandler handler, boolean gzipped) throws IOException
FileHandler. The given flag
shows whether the tar file is has been further compressed using gzip. Returns
a set of the files that have been found within the tar file and that hvae
been forwarded to the FileHandler.file - the tar file that should be readhandler - the handler that is used to process the single filesgzipped - if the flag is true the file is decompressed before
processingIOException - if an IO error occurs while reading the tar fileprotected Set<String> read(org.apache.commons.compress.archivers.tar.TarArchiveInputStream tarStream, FileHandler handler) throws IOException
IOExceptionCopyright © 2019–2020. All rights reserved.