org.dtools.ini
Class IniUtilities
java.lang.Object
org.dtools.ini.IniUtilities
public final class IniUtilities
- extends Object
This class provides static methods to perform simple operations on
IniFile
s, IniSection
s or IniItem
s.
The class also provides access to global settings for the whole package,
such as defining what an end line character(s) is.
- Since:
- 0.1.17
- Version:
- 0.1.20
- Author:
- David Lewis
Field Summary |
static String |
NEW_LINE
The new line character(s) that the ini classes uses. |
Method Summary |
static boolean |
isDisjoint(IniFile ini1,
IniFile ini2)
This predicate tests to see if the two given IniFiles are disjoint,
that is, that they do not contain any sections with the same name OR, if
the two IniFiles do contain sections with the same name, that those
sections are disjoint. |
static boolean |
isDisjoint(IniSection s1,
IniSection s2)
This predicate tests to see if the two given IniSections are disjoint,
that is, that they do not contain any Items with the same name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NEW_LINE
public static final String NEW_LINE
- The new line character(s) that the ini classes uses.
- See Also:
- Constant Field Values
IniUtilities
public IniUtilities()
isDisjoint
public static boolean isDisjoint(IniSection s1,
IniSection s2)
- This predicate tests to see if the two given IniSections are disjoint,
that is, that they do not contain any Items with the same name.
- Parameters:
s1
- The first IniSections2
- The second IniSection
- Returns:
- boolean, true if the two sections have no items with the same
name, false otherwise.
isDisjoint
public static boolean isDisjoint(IniFile ini1,
IniFile ini2)
- This predicate tests to see if the two given IniFiles are disjoint,
that is, that they do not contain any sections with the same name OR, if
the two IniFiles do contain sections with the same name, that those
sections are disjoint.
- Parameters:
ini1
- The first IniFileini2
- The second IniFile
- Returns:
- boolean, true if the two ini files have no sections with the
same name, or true if the ini files have two sections with the same name
but no items within the sections with the same name. False if there is a
section or an item with the same name.