public FTPClient() { this.__initDefaults(); this.__dataTimeout = -1; this.__remoteVerificationEnabled = true; this.__parserFactory = new DefaultFTPFileEntryParserFactory(); this.__configuration = null; this.__listHiddenFiles = false; this.__useEPSVwithIPv4 = false; this.__random = new Random(); this.__passiveLocalHost = null; }
/** * Default FTPClient constructor. Creates a new FTPClient instance * with the data connection mode set to * <code> ACTIVE_LOCAL_DATA_CONNECTION_MODE </code>, the file type * set to <code> FTP.ASCII_FILE_TYPE </code>, the * file format set to <code> FTP.NON_PRINT_TEXT_FORMAT </code>, * the file structure set to <code> FTP.FILE_STRUCTURE </code>, and * the transfer mode set to <code> FTP.STREAM_TRANSFER_MODE </code>. * <p> * The list parsing auto-detect feature can be configured to use lenient future * dates (short dates may be up to one day in the future) as follows: * <pre> * FTPClient ftp = new FTPClient(); * FTPClientConfig config = new FTPClientConfig(); * config.setLenientFutureDates(true); * ftp.configure(config ); * </pre> */ public FTPClient() { __initDefaults(); __dataTimeout = -1; __remoteVerificationEnabled = true; __parserFactory = new DefaultFTPFileEntryParserFactory(); __configuration = null; __listHiddenFiles = false; __useEPSVwithIPv4 = false; __random = new Random(); __passiveLocalHost = null; }