public void fromString (String data) { fromString(data, true); }
/** * Load additional parameters from the provided data. * If clearParameters is set, then it first resets this parameters object to its default values. * <p> * Subclasses should not normally need to override this method unless * they are maintaining complex values (eg, {@link InlineCodeFinder}) * that require extra initialization as part of their parameter state. * @param data the string holding the parameters. See {@link IParameters#fromString}. * @param clearParameters if true, the internal parameters will be cleared before * loading the data. If false, any existing parameters will be left intact * unless they are overridden by the data. */ public void fromString (String data, boolean clearParameters) { buffer.fromString(data, clearParameters); }
/** * Reset this parameters object to its default values and then load * additional parameters from the provided data. * <p> * Subclasses should not normally need to override this method unless * they are maintaining complex values (eg, {@link InlineCodeFinder}) * that require extra initialization as part of their parameter state. */ @Override public void fromString (String data) { buffer.reset(); // Clear buffer reset(); // Set default values buffer.fromString(data, false); }
public void fromString (String data) { reset(); buffer.fromString(data); extractNotes = buffer.getBoolean(EXTRACTNOTES, extractNotes); simplifyCodes = buffer.getBoolean(SIMPLIFYCODES, simplifyCodes); extractMasterSpreads = buffer.getBoolean(EXTRACTMASTERSPREADS, extractMasterSpreads); skipThreshold = buffer.getInteger(SKIPTHRESHOLD, skipThreshold); newTuOnBr = buffer.getBoolean(NEWTUONBR, newTuOnBr); }