public static String separatorsToWindows(String path){
  if (path == null || path.indexOf(UNIX_SEPARATOR) == -1) {
    return path;
  }
  return path.replace(UNIX_SEPARATOR,WINDOWS_SEPARATOR);
}

public static String separatorsToWindows ( String path ) { if ( path == null || path . indexOf ( UNIX_SEPARATOR ) == - 1 ) { return path ; } return path . replace ( UNIX_SEPARATOR , WINDOWS_SEPARATOR ) ; }
converts all separators to the windows separator of backslash .
