public static String toWindows(String spec) {
      if (spec == null) {
         return StringUtils.EMPTY;
      }
      return spec.replaceAll("/+", "\\\\");
   }
public static String toWindows ( String spec ) { if ( spec == null ) { return StringUtils . EMPTY ; } return spec . replaceAll ( "/+" , "\\\\" ) ; }
Converts file spec to windows path separators

@param spec The file spec
@return windows style path spec