private String createFileName(String fName){
  List<String> forbiddenCharsPatterns=new ArrayList<>();
  forbiddenCharsPatterns.add("[:]+");
  forbiddenCharsPatterns.add("[\\*\"/\\\\\\[\\]\\:\\;\\|\\=\\,]+");
  forbiddenCharsPatterns.add("[^\\w\\d\\.]+");
  String nameToTest=fName;
  for (  String pattern : forbiddenCharsPatterns) {
    nameToTest=nameToTest.replaceAll(pattern,"_");
  }
  return nameToTest;
}

private String createFileName ( String fName ) { List < String > forbiddenCharsPatterns = new ArrayList < > ( ) ; forbiddenCharsPatterns . add ( "[:]+" ) ; forbiddenCharsPatterns . add ( "[\\*\"/\\\\\\[\\]\\:\\;\\|\\=\\,]+" ) ; forbiddenCharsPatterns . add ( "[^\\w\\d\\.]+" ) ; String nameToTest = fName ; for ( String pattern : forbiddenCharsPatterns ) { nameToTest = nameToTest . replaceAll ( pattern , "_" ) ; } return nameToTest ; }
# 143 # 44 # 42 # 22 : make shure that the filename does not contain illegal chars . this should fix some of the " cannot download " problems .
