Java 类com.beust.jcommander.IStringConverterFactory 实例源码

项目:WAG    文件:StringConverterFactory.java   
public static IStringConverterFactory newInstance(final boolean loadDefaults) {
    StringConverterFactory factory = new StringConverterFactory();
    if (loadDefaults) {
        factory.register(Charset.class, CharsetStringConverter.class);
    }
    return factory;
}