MCPcopy Create free account
hub / github.com/Qihoo360/poseidon / set

Method set

builder/index/src/main/java/util/IniParser.java:282–288  ·  view source on GitHub ↗

Sets the value of an option in a section, if the option exist, otherwise adds the option to the section. Trims white space from the start and the end of the value and deletes newline characters it might contain. @param section the section's name @param option the option's name @param value the o

(String section, String option, String value)

Source from the content-addressed store, hash-verified

280 * @throws NullPointerException section or option are <code>null</code>
281 */
282 public void set(String section, String option, String value) {
283 if (hasSection(section)) {
284 getSection(section).set(option, value);
285 } else {
286 throw new NoSuchSectionException(section);
287 }
288 }
289
290 /**
291 * Removes an option from a section if it exists. Will not remove options

Callers 10

setDocIdsMethod · 0.45
setDocListMethod · 0.45
setRowListMethod · 0.45
nextKeyValueMethod · 0.45
runMethod · 0.45
InitParamsMethod · 0.45
InitJsonParamsMethod · 0.45
initMethod · 0.45
InitMethod · 0.45
setMethod · 0.45

Calls 2

hasSectionMethod · 0.95
getSectionMethod · 0.95

Tested by

no test coverage detected