com.telecel.utils.FileUtils.java Source code

Java tutorial

Introduction

Here is the source code for com.telecel.utils.FileUtils.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.telecel.utils;

import java.io.File;
import org.apache.commons.io.FilenameUtils;

/**
 *
 * @author primrose
 */
public class FileUtils {
    public static String getExtension(File file) {
        String ext;
        ext = FilenameUtils.getExtension(file.getAbsolutePath());
        return ext;
    }

    public static boolean isExists(File file) {
        return file.exists();
    }
}