class FileName {

    public String getSuffix() {
        int suffixPos = fileName.lastIndexOf('.');
        if (suffixPos < 0) {
            suffixPos = fileName.length() - 1;
        }
        return fileName.substring(suffixPos + 1);
    }

    public  FileName(String fileName);

}