/** 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; }
public CsvGenerator disable(Feature f) { _formatFeatures &= ~f.getMask(); _writer.overrideFormatFeatures(_formatFeatures); return this; }
public final boolean isEnabled(Feature f) { return (_formatFeatures & f.getMask()) != 0; }