Java Char Convert To convertCharacters(String fileName)

Here you can find the source of convertCharacters(String fileName)

Description

convert Characters

License

Open Source License

Parameter

Parameter Description
fileName a parameter

Return

String

Declaration

public static String convertCharacters(String fileName) 

Method Source Code

//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('?', ' ');
    }
}

Related

  1. charToUpperOrLower(String string, int pos, boolean upper)
  2. convertChar(char c)
  3. convertCharacter(final String value)
  4. convertCharacterEntity(String value)
  5. convertCharacterOffsetToCodePointOffset(String inputStr, int charOffset)
  6. convertCharArray(char[] arr)
  7. convertCharArrayToIntArray(char[] chars)
  8. convertChars(String orig_name, String chars, char toChar)
  9. convertCharSet(String str, String desCharset)