use of com.mucommander.commons.file.archive.gzip.GzipArchiveFile in project mucommander by mucommander.
the class RegistryImage method toFile.
private AbstractFile toFile(String layer) {
String parentPath = PathUtils.removeTrailingSeparator(fileURL.getPath()) + AbstractFile.DEFAULT_SEPARATOR;
FileURL childURL = (FileURL) fileURL.clone();
childURL.setPath(parentPath + layer.split(":")[1]);
childURL.setScheme("file");
GzipArchiveFile archive = new GzipArchiveFile(FileFactory.getFile(childURL));
archive.setCustomExtension("tar.gz");
archive.setParent(this);
return archive;
}
Aggregations