Java 类org.apache.commons.net.ftp.parser.ParserInitializationException 实例源码

项目:cyberduck    文件:FTPParserFactory.java   
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);
}
项目:xdm    文件:DefaultFTPFileEntryParserFactory.java   
public FTPFileEntryParser createFileEntryParser(String key) {
   if(key == null) {
      throw new ParserInitializationException("Parser key cannot be null");
   } else {
      return this.createFileEntryParser(key, (FTPClientConfig)null);
   }
}
项目:Camel    文件:OsgiParserFactory.java   
@Override
public FTPFileEntryParser createFileEntryParser(String key) {
    if (key == null) {
        throw new ParserInitializationException("Parser key cannot be null");
    }
    return createFileEntryParser(key, null);
}
项目:cyberduck    文件:FTPParserFactory.java   
public CompositeFileEntryParser createFileEntryParser(final FTPClientConfig config) throws ParserInitializationException {
    return this.createFileEntryParser(config.getServerSystemKey(), TimeZone.getTimeZone(config.getServerTimeZoneId()));
}
项目:cyberduck    文件:FTPParserFactory.java   
public CompositeFileEntryParser createFileEntryParser(final String system) throws ParserInitializationException {
    return this.createFileEntryParser(system, TimeZone.getDefault());
}
项目:xdm    文件:DefaultFTPFileEntryParserFactory.java   
public FTPFileEntryParser createFileEntryParser(FTPClientConfig config) throws ParserInitializationException {
   String key = config.getServerSystemKey();
   return this.createFileEntryParser(key, config);
}
项目:Camel    文件:OsgiParserFactory.java   
@Override
public FTPFileEntryParser createFileEntryParser(FTPClientConfig config)
    throws ParserInitializationException {
    String key = config.getServerSystemKey();
    return createFileEntryParser(key, config);
}
项目:xdm    文件:FTPFileEntryParserFactory.java   
FTPFileEntryParser createFileEntryParser(String var1) throws ParserInitializationException;
项目:xdm    文件:FTPFileEntryParserFactory.java   
FTPFileEntryParser createFileEntryParser(FTPClientConfig var1) throws ParserInitializationException;