コード例 #1
0
 /**
  * Creates a new SimpleFileAttributes instance whose attributes are set to those of the given
  * AbstractFile. Note that the path attribute is set to the file's {@link
  * com.mucommander.commons.file.AbstractFile#getAbsolutePath() absolute path}.
  *
  * @param file the file from which to fetch the attribute values
  */
 public SimpleFileAttributes(AbstractFile file) {
   setPath(file.getAbsolutePath());
   setExists(file.exists());
   setDate(file.getDate());
   setSize(file.getSize());
   setDirectory(file.isDirectory());
   setPermissions(file.getPermissions());
   setOwner(file.getOwner());
   setGroup(file.getGroup());
 }
コード例 #2
0
 @Override
 public String getGroup() {
   return file.getGroup();
 }