org.apache.commons.net.ftp.parser.ParserInitializationException Java Examples
The following examples show how to use
org.apache.commons.net.ftp.parser.ParserInitializationException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FTPParserFactory.java From cyberduck with GNU General Public License v3.0 | 5 votes |
public CompositeFileEntryParser createFileEntryParser(final String system, final TimeZone timezone) throws ParserInitializationException { if(null != system) { String ukey = system.toUpperCase(Locale.ROOT); if(ukey.contains(FTPClientConfig.SYST_UNIX)) { return this.createUnixFTPEntryParser(timezone); } else if(ukey.contains(FTPClientConfig.SYST_VMS)) { throw new ParserInitializationException(String.format("\"%s\" is not currently a supported system.", system)); } else if(ukey.contains(FTPClientConfig.SYST_NETWARE)) { return this.createNetwareFTPEntryParser(timezone); } else if(ukey.contains(FTPClientConfig.SYST_NT)) { return this.createNTFTPEntryParser(timezone); } else if(ukey.contains(FTPClientConfig.SYST_OS2)) { return this.createOS2FTPEntryParser(timezone); } else if(ukey.contains(FTPClientConfig.SYST_OS400)) { return this.createOS400FTPEntryParser(timezone); } else if(ukey.contains(FTPClientConfig.SYST_MVS)) { return this.createUnixFTPEntryParser(timezone); } } // Defaulting to UNIX parser return this.createUnixFTPEntryParser(timezone); }
Example #2
Source File: FTPParserFactory.java From cyberduck with GNU General Public License v3.0 | 4 votes |
public CompositeFileEntryParser createFileEntryParser(final FTPClientConfig config) throws ParserInitializationException { return this.createFileEntryParser(config.getServerSystemKey(), TimeZone.getTimeZone(config.getServerTimeZoneId())); }
Example #3
Source File: FTPParserFactory.java From cyberduck with GNU General Public License v3.0 | 4 votes |
public CompositeFileEntryParser createFileEntryParser(final String system) throws ParserInitializationException { return this.createFileEntryParser(system, TimeZone.getDefault()); }