Java Path Create makePathFile(String javaConnectorSourcePath, String packageName, String className)

Here you can find the source of makePathFile(String javaConnectorSourcePath, String packageName, String className)

Description

Make path file.

License

Apache License

Parameter

Parameter Description
javaConnectorSourcePath the java connector source path
packageName the package name
className the class name

Return

the string

Declaration

public static String makePathFile(String javaConnectorSourcePath, String packageName, String className) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.File;

public class Main {
    /**/*from   w  w  w.j  a v  a  2 s. c o m*/
     * Make path file.
     *
     * @param javaConnectorSourcePath the java connector source path
     * @param packageName             the package name
     * @param className               the class name
     * @return the string
     */
    public static String makePathFile(String javaConnectorSourcePath, String packageName, String className) {
        String p = packageName.replace(".", File.separator);

        return javaConnectorSourcePath + File.separator + p + File.separator + className + ".java";
    }
}

Related

  1. makePath(String... elements)
  2. makePath(String... elements)
  3. makePath(String[] strings)
  4. makePathAbsolute(String path)
  5. makePathASafeFileName(String filePath)
  6. makePathFromDate()
  7. makePathFromStrings(List files)
  8. makePathName(String directoryName, String fileName)
  9. makePathRelativeTo(String path, final File basedir)