public class TarStripper extends Object implements Stripper
| Constructor and Description |
|---|
TarStripper(LocalDateTime reproducibleDateTime)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.compress.archivers.tar.TarArchiveInputStream |
createInputStream(File in)
Factory that create a new instance of tar input stream, for allow extension for different file compression
format.
|
protected org.apache.commons.compress.archivers.tar.TarArchiveOutputStream |
createOutputStream(File out)
Factory that create a new instance of tar output stream, for allow extension for different file compression
format.
|
void |
strip(File in,
File out)
Strips non-reproducible data.
|
public TarStripper(LocalDateTime reproducibleDateTime)
reproducibleDateTime - the date/time to use in TAR entries.protected org.apache.commons.compress.archivers.tar.TarArchiveInputStream createInputStream(File in) throws FileNotFoundException, IOException
in - the input file.FileNotFoundException - if the file as parameter is not foundIOException - if there are error reading the file given as parameterprotected org.apache.commons.compress.archivers.tar.TarArchiveOutputStream createOutputStream(File out) throws FileNotFoundException, IOException
out - the output file.FileNotFoundException - if the file as parameter is not foundIOException - if there are error reading the file given as parameterpublic void strip(File in, File out) throws IOException
Stripperstrip in interface Stripperin - the input file.out - the stripped output file.IOException - if an I/O error occurs.Copyright © 2015–1970. All rights reserved.