public void updatePlatform(final String aOs,final String aArch,final ByteOrder aByteOrder){
  _os=aOs.toLowerCase();
  _arch=aArch.toLowerCase();
  String[] chmod={"chmod","755",null};
  if (_arch.equals("x86") || _arch.equals("i386") || _arch.equals("i486")|| _arch.equals("i586")|| _arch.equals("i686")) {
    _arch=ARCH_X86_32;
  }
  if (_arch.equals("amd64")) {
    _arch=ARCH_X86_64;
  }
  if (_arch.equals("powerpc")) {
    _arch=ARCH_PPC;
  }
  if (_os.startsWith("windows")) {
    _os=OS_WINDOWS;
    _executableSuffix=".exe";
    chmod=null;
  }
  if (_os.startsWith("mac")) {
    _os=OS_OSX;
  }
  if (_os.startsWith("linux")) {
    _os=OS_LINUX;
  }
  if (_os.startsWith("sun")) {
    _os=OS_SOLARIS;
  }
  _chmodCmd=chmod;
  _byteOrder=aByteOrder;
}

public void updatePlatform ( final String aOs , final String aArch , final ByteOrder aByteOrder ) { _os = aOs . toLowerCase ( ) ; _arch = aArch . toLowerCase ( ) ; String [ ] chmod = { "chmod" , "755" , null } ; if ( _arch . equals ( "x86" ) || _arch . equals ( "i386" ) || _arch . equals ( "i486" ) || _arch . equals ( "i586" ) || _arch . equals ( "i686" ) ) { _arch = ARCH_X86_32 ; } if ( _arch . equals ( "amd64" ) ) { _arch = ARCH_X86_64 ; } if ( _arch . equals ( "powerpc" ) ) { _arch = ARCH_PPC ; } if ( _os . startsWith ( "windows" ) ) { _os = OS_WINDOWS ; _executableSuffix = ".exe" ; chmod = null ; } if ( _os . startsWith ( "mac" ) ) { _os = OS_OSX ; } if ( _os . startsWith ( "linux" ) ) { _os = OS_LINUX ; } if ( _os . startsWith ( "sun" ) ) { _os = OS_SOLARIS ; } _chmodCmd = chmod ; _byteOrder = aByteOrder ; }
updates the platform - specific settings and normalizes them .
