Logo Search packages:      
Sourcecode: jlha-utils version File versions  Download package

String org::jlhafrontend::ListFormatter::getPERMSSN (  )  [inline]

get PERMSSN field

Returns:
string of the field

Definition at line 114 of file ListFormatter.java.

References toField().

Referenced by org::jlhafrontend::JLHAFrontEnd::list(), and org::jlhafrontend::JLHAFrontEnd::verboseList().

                               {
      byte OSID;
      byte[] generic_table = {'2','9','K','3','H','U','C','F','m','R','T','X','w','W','J'};
      String ret="[unknown]";
      int i;
      OSID = lh.getOSID();
      if (OSID=='M') {
          ret = "[MS-DOS]";
      } else if (OSID==0) {
          ret = "[generic]";
      } else {    /* FIXME - should display correct OSID */
          for (i=0 ; i<generic_table.length ; i++) {
            if (OSID == generic_table[i]) {
                ret = "[generic]";
            }
          }
      }
      return toField(ret,10,true);
    }


Generated by  Doxygen 1.6.0   Back to index