Example usage for Java org.apache.shiro.config Ini fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DEFAULT_SECTION_NAME |
Ini() Creates a new empty Ini instance. |
Section | addSection(String sectionName) Ensures a section with the specified name exists, adding a new one if it does not yet exist. |
boolean | containsKey(Object key) |
Ini | fromResourcePath(String resourcePath) Creates a new Ini instance loaded with the INI-formatted data in the resource at the given path. |
Section | get(Object key) |
Section | getSection(String sectionName) Returns the Section with the given name or null if no section with that name exists. |
Set | getSectionNames() Returns the names of all sections managed by this Ini instance or an empty collection if there are no sections. |
Collection | getSections() Returns the sections managed by this Ini instance or an empty collection if there are no sections. |
boolean | isEmpty() Returns true if no sections have been configured, or if there are sections, but the sections themselves are all empty, false otherwise. |
void | load(String iniConfig) Loads the specified raw INI-formatted text into this instance. |
void | load(InputStream is) Loads the INI-formatted text backed by the given InputStream into this instance. |
void | load(Reader reader) Loads the INI-formatted text backed by the given Reader into this instance. |
void | load(Scanner scanner) Loads the INI-formatted text backed by the given Scanner. |
void | loadFromPath(String resourcePath) Loads data from the specified resource path into this current Ini instance. |
void | setSectionProperty(String sectionName, String propertyName, String propertyValue) Sets a name/value pair for the section with the given sectionName . |