All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zeroturnaround.zip.ZTFilePermissionsStrategy Maven / Gradle / Ivy

package org.zeroturnaround.zip;

import java.io.File;


/**
 * Maps {@link ZTFilePermissions} to real filesystem-specific file attributes.
 * 
 * @author Viktor Karabut
 */
public interface ZTFilePermissionsStrategy {
  
  /**
   * Get {@link ZTFilePermissions} from file.
   * 
   * @param file file to get permissions for
   * @return permissions or null if cannot retrieve permissions info by some reason.
   */
  ZTFilePermissions getPermissions(File file);
  
  /**
   * Set {@link ZTFilePermissions} to file
   * 
   * @param file file to get permissions for
   * @param permissions permission
   */
  void setPermissions(File file, ZTFilePermissions permissions);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy