Here you can find the source of cleanFileName(String filename)
static String cleanFileName(String filename)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { /************************************************************************** * Clean given 'filename' in order to be able to be used as a file * name.//from w ww . ja va 2s.c o m **************************************************************************/ static String cleanFileName(String filename) { return filename.replace(':', '.').replace('/', '_'); } }