001 /* 002 * ftp4j - A pure Java FTP client library 003 * 004 * Copyright (C) 2008 Carlo Pelliccia (www.sauronsoftware.it) 005 * 006 * This program is free software: you can redistribute it and/or modify 007 * it under the terms of the GNU General Public License as published by 008 * the Free Software Foundation, either version 3 of the License, or 009 * (at your option) any later version. 010 * 011 * This program is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 014 * GNU General Public License for more details. 015 * 016 * You should have received a copy of the GNU General Public License 017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 018 */ 019 package it.sauronsoftware.ftp4j; 020 021 /** 022 * This interface describes how to implement a textual extension recognizer, 023 * which can be plugged into a FTPClient object calling its 024 * setTextualExtensionsRecognizer() method. 025 * 026 * @author Carlo Pelliccia 027 * @see FTPClient#setTextualExtensionRecognizer(FTPTextualExtensionRecognizer) 028 */ 029 public interface FTPTextualExtensionRecognizer { 030 031 /** 032 * This method returns true if the given file extension is recognized to be 033 * a textual one. 034 * 035 * @param ext 036 * The file extension, always in lower-case. 037 * @return true if the given file extension is recognized to be a textual 038 * one. 039 */ 040 public boolean isTextualExt(String ext); 041 042 }