Package org.ini4j
Class Ini
- java.lang.Object
-
- org.ini4j.BasicMultiMap<K,V>
-
- org.ini4j.CommonMultiMap<java.lang.String,Profile.Section>
-
- org.ini4j.BasicProfile
-
- org.ini4j.Ini
-
- All Implemented Interfaces:
java.io.Serializable,java.util.Map<java.lang.String,Profile.Section>,CommentedMap<java.lang.String,Profile.Section>,Configurable,MultiMap<java.lang.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
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.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()java.io.FilegetFile()voidload()voidload(java.io.File input)voidload(java.io.InputStream input)voidload(java.io.Reader input)voidload(java.net.URL input)protected IniHandlernewBuilder()voidsetConfig(Config value)voidsetFile(java.io.File value)voidstore()voidstore(java.io.File output)voidstore(java.io.OutputStream output)voidstore(java.io.Writer output)protected voidstore(IniHandler formatter, Profile.Section section)protected voidstore(IniHandler formatter, Profile.Section section, java.lang.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(java.io.Reader input) throws java.io.IOException, InvalidFileFormatException- Throws:
java.io.IOExceptionInvalidFileFormatException
-
Ini
public Ini(java.io.InputStream input) throws java.io.IOException, InvalidFileFormatException- Throws:
java.io.IOExceptionInvalidFileFormatException
-
Ini
public Ini(java.net.URL input) throws java.io.IOException, InvalidFileFormatException- Throws:
java.io.IOExceptionInvalidFileFormatException
-
Ini
public Ini(java.io.File input) throws java.io.IOException, InvalidFileFormatException- Throws:
java.io.IOExceptionInvalidFileFormatException
-
-
Method Detail
-
getConfig
public Config getConfig()
- Specified by:
getConfigin interfaceConfigurable
-
setConfig
public void setConfig(Config value)
- Specified by:
setConfigin interfaceConfigurable
-
getFile
public java.io.File getFile()
- Specified by:
getFilein interfacePersistable
-
setFile
public void setFile(java.io.File value)
- Specified by:
setFilein interfacePersistable
-
load
public void load() throws java.io.IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
java.io.IOExceptionInvalidFileFormatException
-
load
public void load(java.io.InputStream input) throws java.io.IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
java.io.IOExceptionInvalidFileFormatException
-
load
public void load(java.io.Reader input) throws java.io.IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
java.io.IOExceptionInvalidFileFormatException
-
load
public void load(java.io.File input) throws java.io.IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
java.io.IOExceptionInvalidFileFormatException
-
load
public void load(java.net.URL input) throws java.io.IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
java.io.IOExceptionInvalidFileFormatException
-
store
public void store() throws java.io.IOException- Specified by:
storein interfacePersistable- Throws:
java.io.IOException
-
store
public void store(java.io.OutputStream output) throws java.io.IOException- Specified by:
storein interfacePersistable- Throws:
java.io.IOException
-
store
public void store(java.io.Writer output) throws java.io.IOException- Specified by:
storein interfacePersistable- Throws:
java.io.IOException
-
store
public void store(java.io.File output) throws java.io.IOException- Specified by:
storein interfacePersistable- Throws:
java.io.IOException
-
newBuilder
protected IniHandler newBuilder()
-
store
protected void store(IniHandler formatter, Profile.Section section)
-
store
protected void store(IniHandler formatter, Profile.Section section, java.lang.String option, int index)
-
-