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 Config
getConfig()
java.io.File
getFile()
void
load()
void
load(java.io.File input)
void
load(java.io.InputStream input)
void
load(java.io.Reader input)
void
load(java.net.URL input)
protected IniHandler
newBuilder()
void
setConfig(Config value)
void
setFile(java.io.File value)
void
store()
void
store(java.io.File output)
void
store(java.io.OutputStream output)
void
store(java.io.Writer output)
protected void
store(IniHandler formatter, Profile.Section section)
protected void
store(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.IOException
InvalidFileFormatException
-
Ini
public Ini(java.io.InputStream input) throws java.io.IOException, InvalidFileFormatException
- Throws:
java.io.IOException
InvalidFileFormatException
-
Ini
public Ini(java.net.URL input) throws java.io.IOException, InvalidFileFormatException
- Throws:
java.io.IOException
InvalidFileFormatException
-
Ini
public Ini(java.io.File input) throws java.io.IOException, InvalidFileFormatException
- Throws:
java.io.IOException
InvalidFileFormatException
-
-
Method Detail
-
getConfig
public Config getConfig()
- Specified by:
getConfig
in interfaceConfigurable
-
setConfig
public void setConfig(Config value)
- Specified by:
setConfig
in interfaceConfigurable
-
getFile
public java.io.File getFile()
- Specified by:
getFile
in interfacePersistable
-
setFile
public void setFile(java.io.File value)
- Specified by:
setFile
in interfacePersistable
-
load
public void load() throws java.io.IOException, InvalidFileFormatException
- Specified by:
load
in interfacePersistable
- Throws:
java.io.IOException
InvalidFileFormatException
-
load
public void load(java.io.InputStream input) throws java.io.IOException, InvalidFileFormatException
- Specified by:
load
in interfacePersistable
- Throws:
java.io.IOException
InvalidFileFormatException
-
load
public void load(java.io.Reader input) throws java.io.IOException, InvalidFileFormatException
- Specified by:
load
in interfacePersistable
- Throws:
java.io.IOException
InvalidFileFormatException
-
load
public void load(java.io.File input) throws java.io.IOException, InvalidFileFormatException
- Specified by:
load
in interfacePersistable
- Throws:
java.io.IOException
InvalidFileFormatException
-
load
public void load(java.net.URL input) throws java.io.IOException, InvalidFileFormatException
- Specified by:
load
in interfacePersistable
- Throws:
java.io.IOException
InvalidFileFormatException
-
store
public void store() throws java.io.IOException
- Specified by:
store
in interfacePersistable
- Throws:
java.io.IOException
-
store
public void store(java.io.OutputStream output) throws java.io.IOException
- Specified by:
store
in interfacePersistable
- Throws:
java.io.IOException
-
store
public void store(java.io.Writer output) throws java.io.IOException
- Specified by:
store
in interfacePersistable
- Throws:
java.io.IOException
-
store
public void store(java.io.File output) throws java.io.IOException
- Specified by:
store
in 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)
-
-