Java File Name Get getFilenameForClassName(String className)

Here you can find the source of getFilenameForClassName(String className)

Description

get Filename For Class Name

License

LGPL

Declaration

private static String getFilenameForClassName(String className) 

Method Source Code

//package com.java2s;
/*/*from  ww w. j a v  a 2s  .  c om*/
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
 */

import java.io.File;
import javax.tools.JavaFileObject;

public class Main {
    private static String getFilenameForClassName(String className) {
        return className.replace('.', File.separatorChar)
                + JavaFileObject.Kind.CLASS.extension;
    }
}

Related

  1. getFileNameAndExt(String s)
  2. getFileNameArrayFromDirectory(String directoryLocation)
  3. getFileNameFilter(final String endsWith)
  4. getFilenameFilter(final String extension)
  5. getFilenameFilter(final String pFilter, final boolean pExclude)
  6. getFileNameFromCanonical(String file)
  7. getFileNameFromFilePath(String filePath)
  8. getFileNameFromFilePath(String filepath)
  9. getFileNameFromFullPath(String fullPath)