Here you can find the source of pathToName(String path, String fileName)
Parameter | Description |
---|---|
path | a parameter |
fileName | a parameter |
public static String pathToName(String path, String fileName)
//package com.java2s; //License from project: Open Source License public class Main { /**// w w w . j av a2 s . c o m * Replaces forward slashes in path with periods and returns a file * name based on the path information * @param path * @param fileName * @return */ public static String pathToName(String path, String fileName) { return path.split("m/s/")[1].replace("/", ".") + fileName; } }