Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * To escape characters that can not be used in the file name from the URI.
     * 
     * @param uri
     * @return
     */
    private static String escapeUri(String uri) {
        return uri.replace("://", "_").replace("/", "_");
    }
}