Package org.ini4j
Class Ini
- Object
-
- org.ini4j.BasicMultiMap<K,V>
-
- org.ini4j.CommonMultiMap<String,Profile.Section>
-
- org.ini4j.BasicProfile
-
- org.ini4j.Ini
-
- All Implemented Interfaces:
Serializable,Map<String,Profile.Section>,CommentedMap<String,Profile.Section>,Configurable,MultiMap<String,Profile.Section>,Persistable,Profile
- Direct Known Subclasses:
Wini
public class Ini extends BasicProfile implements Persistable, Configurable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from interface org.ini4j.Profile
Profile.Section
-
-
Field Summary
-
Fields inherited from interface org.ini4j.Profile
PATH_SEPARATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfiggetConfig()FilegetFile()voidload()voidload(File input)voidload(InputStream input)voidload(Reader input)voidload(URL input)protected IniHandlernewBuilder()voidsetConfig(Config value)voidsetFile(File value)voidstore()voidstore(File output)voidstore(OutputStream output)voidstore(Writer output)protected voidstore(IniHandler formatter, Profile.Section section)protected voidstore(IniHandler formatter, Profile.Section section, String option, int index)-
Methods inherited from class org.ini4j.BasicProfile
add, add, as, as, fetch, fetch, get, get, getComment, put, remove, remove, setComment
-
Methods inherited from class org.ini4j.CommonMultiMap
clear, getComment, putAll, putComment, remove, remove, removeComment
-
Methods inherited from class org.ini4j.BasicMultiMap
add, add, containsKey, containsValue, entrySet, get, get, getAll, isEmpty, keySet, length, put, put, putAll, size, toString, values
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ini4j.CommentedMap
getComment, putComment, removeComment
-
-
-
-
Constructor Detail
-
Ini
public Ini()
-
Ini
public Ini(Reader input) throws IOException, InvalidFileFormatException- Throws:
IOExceptionInvalidFileFormatException
-
Ini
public Ini(InputStream input) throws IOException, InvalidFileFormatException- Throws:
IOExceptionInvalidFileFormatException
-
Ini
public Ini(URL input) throws IOException, InvalidFileFormatException- Throws:
IOExceptionInvalidFileFormatException
-
Ini
public Ini(File input) throws IOException, InvalidFileFormatException- Throws:
IOExceptionInvalidFileFormatException
-
-
Method Detail
-
getConfig
public Config getConfig()
- Specified by:
getConfigin interfaceConfigurable
-
setConfig
public void setConfig(Config value)
- Specified by:
setConfigin interfaceConfigurable
-
getFile
public File getFile()
- Specified by:
getFilein interfacePersistable
-
setFile
public void setFile(File value)
- Specified by:
setFilein interfacePersistable
-
load
public void load() throws IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
IOExceptionInvalidFileFormatException
-
load
public void load(InputStream input) throws IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
IOExceptionInvalidFileFormatException
-
load
public void load(Reader input) throws IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
IOExceptionInvalidFileFormatException
-
load
public void load(File input) throws IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
IOExceptionInvalidFileFormatException
-
load
public void load(URL input) throws IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
IOExceptionInvalidFileFormatException
-
store
public void store() throws IOException- Specified by:
storein interfacePersistable- Throws:
IOException
-
store
public void store(OutputStream output) throws IOException- Specified by:
storein interfacePersistable- Throws:
IOException
-
store
public void store(Writer output) throws IOException- Specified by:
storein interfacePersistable- Throws:
IOException
-
store
public void store(File output) throws IOException- Specified by:
storein interfacePersistable- Throws:
IOException
-
newBuilder
protected IniHandler newBuilder()
-
store
protected void store(IniHandler formatter, Profile.Section section)
-
store
protected void store(IniHandler formatter, Profile.Section section, String option, int index)
-
-