/** * Method that calculates bit set (flags) of all features that * are enabled by default. */ public static int collectDefaults() { int flags = 0; for (Feature f : values()) { if (f.enabledByDefault()) { flags |= f.getMask(); } } return flags; }
private Feature(boolean defaultState) { _defaultState = defaultState; _mask = (1 << ordinal()); }
/** * Method for checking whether specified CSV {@link Feature} * is enabled. */ public boolean isEnabled(YAMLParser.Feature f) { return (_formatFeatures & f.getMask()) != 0; }
/** * Method for disabling specified CSV feature * (check {@link Feature} for list of features) */ public JsonParser disable(YAMLParser.Feature f) { _formatFeatures &= ~f.getMask(); return this; }
/** * Method for disabling specified parser features * (check {@link YAMLParser.Feature} for list of features) */ public YAMLFactory disable(YAMLParser.Feature f) { _yamlParserFeatures &= ~f.getMask(); return this; }
/** * Method for enabling specified CSV feature * (check {@link Feature} for list of features) */ public JsonParser enable(YAMLParser.Feature f) { _formatFeatures |= f.getMask(); return this; }
/** * Checked whether specified parser feature is enabled. */ public final boolean isEnabled(YAMLParser.Feature f) { return (_yamlParserFeatures & f.getMask()) != 0; }
/** * Method for enabling specified parser feature * (check {@link YAMLParser.Feature} for list of features) */ public YAMLFactory enable(YAMLParser.Feature f) { _yamlParserFeatures |= f.getMask(); return this; }
private Feature(boolean defaultState) { _defaultState = defaultState; _mask = (1 << ordinal()); }
/** * Method for enabling specified parser feature * (check {@link YAMLParser.Feature} for list of features) */ public YAMLFactory enable(YAMLParser.Feature f) { _yamlParserFeatures |= f.getMask(); return this; }
/** * Method for enabling specified CSV feature * (check {@link Feature} for list of features) */ public JsonParser enable(YAMLParser.Feature f) { _formatFeatures |= f.getMask(); return this; }
/** * Method that calculates bit set (flags) of all features that * are enabled by default. */ public static int collectDefaults() { int flags = 0; for (Feature f : values()) { if (f.enabledByDefault()) { flags |= f.getMask(); } } return flags; }
/** * Checked whether specified parser feature is enabled. */ public final boolean isEnabled(YAMLParser.Feature f) { return (_yamlParserFeatures & f.getMask()) != 0; }
/** * Method for disabling specified CSV feature * (check {@link Feature} for list of features) */ public JsonParser disable(YAMLParser.Feature f) { _formatFeatures &= ~f.getMask(); return this; }
/** * Method for checking whether specified CSV {@link Feature} * is enabled. */ public boolean isEnabled(YAMLParser.Feature f) { return (_formatFeatures & f.getMask()) != 0; }
/** * Method for disabling specified parser features * (check {@link YAMLParser.Feature} for list of features) */ public YAMLFactory disable(YAMLParser.Feature f) { _yamlParserFeatures &= ~f.getMask(); return this; }