public void setUnixMode(int mode) {
    setExternalAttributes(((long)(mode & SHORT_MASK) << 16)
                          // MS-DOS read-only attribute
                          | ((mode & 0200) == 0 ? 1 : 0)
                          // MS-DOS directory flag
                          | (isDirectory() ? 0x10 : 0));
    platform = PLATFORM_UNIX;
  }
public void setUnixMode(int mode)