Package org.ini4j
Class Reg
- java.lang.Object
-
- org.ini4j.BasicMultiMap<K,V>
-
- org.ini4j.CommonMultiMap<java.lang.String,Profile.Section>
-
- org.ini4j.BasicProfile
-
- org.ini4j.BasicRegistry
-
- org.ini4j.Reg
-
- 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
,Registry
public class Reg extends BasicRegistry implements Registry, 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
-
Nested classes/interfaces inherited from interface org.ini4j.Registry
Registry.Hive, Registry.Key, Registry.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DEFAULT_SUFFIX
protected static java.lang.String
TMP_PREFIX
-
Fields inherited from interface org.ini4j.Profile
PATH_SEPARATOR
-
Fields inherited from interface org.ini4j.Registry
ESCAPE_CHAR, FILE_ENCODING, KEY_SEPARATOR, LINE_SEPARATOR, TYPE_SEPARATOR, VERSION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Config
getConfig()
java.io.File
getFile()
static boolean
isWindows()
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
read(java.lang.String registryKey)
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)
void
write()
-
Methods inherited from class org.ini4j.BasicRegistry
add, get, get, getVersion, put, put, remove, remove, remove, setVersion
-
Methods inherited from class org.ini4j.BasicProfile
add, as, as, fetch, fetch, get, get, getComment, put, remove, setComment
-
Methods inherited from class org.ini4j.CommonMultiMap
clear, getComment, putAll, putComment, removeComment
-
Methods inherited from class org.ini4j.BasicMultiMap
add, add, containsKey, containsValue, entrySet, getAll, isEmpty, keySet, length, 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
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, replace, replace, replaceAll, size, values
-
Methods inherited from interface org.ini4j.Profile
add, add, as, as, fetch, fetch, get, get, getComment, put, remove, remove, setComment
-
Methods inherited from interface org.ini4j.Registry
get, get, getVersion, put, put, remove, remove, setVersion
-
-
-
-
Field Detail
-
DEFAULT_SUFFIX
protected static final java.lang.String DEFAULT_SUFFIX
- See Also:
- Constant Field Values
-
TMP_PREFIX
protected static final java.lang.String TMP_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Reg
public Reg()
-
Reg
public Reg(java.lang.String registryKey) throws java.io.IOException
- Throws:
java.io.IOException
-
Reg
public Reg(java.io.File input) throws java.io.IOException, InvalidFileFormatException
- Throws:
java.io.IOException
InvalidFileFormatException
-
Reg
public Reg(java.net.URL input) throws java.io.IOException, InvalidFileFormatException
- Throws:
java.io.IOException
InvalidFileFormatException
-
Reg
public Reg(java.io.InputStream input) throws java.io.IOException, InvalidFileFormatException
- Throws:
java.io.IOException
InvalidFileFormatException
-
Reg
public Reg(java.io.Reader input) throws java.io.IOException, InvalidFileFormatException
- Throws:
java.io.IOException
InvalidFileFormatException
-
-
Method Detail
-
isWindows
public static boolean isWindows()
-
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.net.URL 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
-
read
public void read(java.lang.String registryKey) throws java.io.IOException
- Throws:
java.io.IOException
-
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
-
write
public void write() throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
protected IniHandler newBuilder()
-
-