/** * Create URI for files inside RAR Archive. * @param parent URI of parent RAR file. eg: file://home/user/myrar.rar * @param rarEntry Full path of entry inside iso image eg: /dir/another dir/file.txt * @return URI. */ public static URI toRarUri(URI parent, String rarEntry) { return toUri(parent, rarEntry, ImageType.RAR); }
/** * Builds a URI for a 7z file entry. * @param parent the parent 7z file. * @param sevenZipEntry the 7z entry * @return the URI */ public static URI toSevenZUri(URI parent, String sevenZipEntry) { return toUri(parent, sevenZipEntry, ImageType.SEVENZ); }
/** * Builds a URI for a Fat file entry. * @param parent the parent Fat file. * @param fatEntry the Fat entry * @return the URI */ public static URI toFatImageUri(URI parent, String fatEntry) { return toUri(parent, fatEntry, ImageType.FAT); }
/** * Builds a URI for a zip file entry. * @param parent the parent zip file. * @param zipEntry the zip entry * @return the URI */ public static URI toZipUri(URI parent, String zipEntry) { return toUri(parent, zipEntry, ImageType.ZIP); }
/** * Create URI for files inside ISO image. * @param parent URI of parent ISO file. eg: file://home/user/isofile.iso * @param imageEntry Full path of entry inside iso image eg: /dir/another dir/file.txt * @return URI. */ public static URI toIsoImageUri(URI parent, String imageEntry) { return toUri(parent, imageEntry, ImageType.ISO); }
/** * Builds a URI for a tar file entry. * @param parent the parent tar file. * @param tarEntry the tar entry * @return the URI */ public static URI toTarUri(URI parent, String tarEntry) { return toUri(parent, tarEntry, ImageType.TAR); }