Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * judge whether is a pdz file.
     * 
     * @param path the file path
     * @return true if it is a image file, otherwise false
     */
    public static boolean isTemplateFile(String path) {

        String extention = path.substring(path.lastIndexOf(".", path.length()) + 1, path.length());
        if (extention.equalsIgnoreCase("pdz") || extention.equalsIgnoreCase("blf")) {
            return true;
        }
        return false;
    }
}