public String toString() {
        if (this.sections == null || this.sections.isEmpty()) {
            return "<empty INI>";
        } else {
            StringBuilder sb = new StringBuilder("sections=");
            int i = 0;
            for (Ini.Section section : this.sections.values()) {
                if (i > 0) {
                    sb.append(",");
                }
                sb.append(section.toString());
                i++;
            }
            return sb.toString();
        }
    }
Loads the INI-formatted text backed by the given Scanner.  This implementation will close the
scanner after it has finished loading.

@param scanner the {@code Scanner} from which to read the INI-formatted text
config/core/src/main/java/org/apache/shiro/config/Ini.java