Java String Clean cleanString(String input, char ol, char ne)

Here you can find the source of cleanString(String input, char ol, char ne)

Description

Helper method for replacing the file seperator char based on the OS

License

Open Source License

Parameter

Parameter Description
tsize Description of the Parameter

Return

The block value

Declaration

public static String cleanString(String input, char ol, char ne) 

Method Source Code

//package com.java2s;
/******************************************************************************
 *
 *
 * Barred File Archiver./* ww  w.  j  a  va 2s  . com*/
 *
 * Copyright (C) 2009 by Frank Jennings (fermatjen@yahoo.com).
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation under the terms of the GNU General Public License is hereby
 * granted. No representations are made about the suitability of this software
 * for any purpose. It is provided "as is" without express or implied warranty.
 * See the GNU General Public License for more details.
 *
 *
 * @author     Frank Jennings fermatjen@yahoo.com
 * @created    September 20, 2009
 */

public class Main {
    /**
     *  Helper method for replacing the file seperator
     *  char based on the OS
     *
     *@param  tsize  Description of the Parameter
     *@return        The block value
     */
    public static String cleanString(String input, char ol, char ne) {
        return input.replace(ol, ne);
    }
}

Related

  1. cleanString(String aString)
  2. cleanString(String field)
  3. cleanString(String statement)
  4. cleanString(String unallowableCharacters, String stringToClean)
  5. cleanStringArrayChar(String value)
  6. cleanStringByLikeWithHSQL(String input)