Java File Name Get getFileName(Class cls, String ext)

Here you can find the source of getFileName(Class cls, String ext)

Description

get File Name

License

Open Source License

Declaration

protected static String getFileName(Class cls, String ext) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2005-2011 eBay Inc./*from  w w  w  .  ja  v a  2  s .com*/
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 *******************************************************************************/

import java.io.File;

public class Main {
    private static final File CODEGENDIR = new File("CODEGEN");

    protected static String getFileName(Class cls, String ext) {
        return new File(CODEGENDIR, cls.getSimpleName() + ext).getAbsolutePath();

    }
}

Related

  1. getFileName(File element)
  2. getFileName(File f)
  3. getFileName(File f)
  4. getFileName(File f)