Search in sources :

Example 1 with GzipArchiveFile

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;
}
Also used : GzipArchiveFile(com.mucommander.commons.file.archive.gzip.GzipArchiveFile) FileURL(com.mucommander.commons.file.FileURL)

Aggregations

FileURL (com.mucommander.commons.file.FileURL)1 GzipArchiveFile (com.mucommander.commons.file.archive.gzip.GzipArchiveFile)1