Here you can find the source of convertCharacters(String fileName)
Parameter | Description |
---|---|
fileName | a parameter |
public static String convertCharacters(String fileName)
//package com.java2s; /******************************************************************************* * Manchester Centre for Integrative Systems Biology * University of Manchester//from w w w. j ava 2 s .c o m * Manchester M1 7ND * United Kingdom * * Copyright (C) 2007 University of Manchester * * This program is released under the Academic Free License ("AFL") v3.0. * (http://www.opensource.org/licenses/academic.php) *******************************************************************************/ public class Main { /** * * @param fileName * @return String */ public static String convertCharacters(String fileName) { return fileName.replace(':', ' ').replace('|', ' ').replace('*', ' ').replace('?', ' '); } }