org.ini4j
Class Reg

Object
  extended by org.ini4j.BasicMultiMap<K,V>
      extended by org.ini4j.CommonMultiMap<String,Profile.Section>
          extended by org.ini4j.BasicProfile
              extended by org.ini4j.BasicRegistry
                  extended by org.ini4j.Reg
All Implemented Interfaces:
Serializable, Map<String,Profile.Section>, CommentedMap<String,Profile.Section>, Configurable, MultiMap<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 org.ini4j.Registry
Registry.Hive, Registry.Key, Registry.Type
 
Nested classes/interfaces inherited from interface org.ini4j.Profile
Profile.Section
 
Nested classes/interfaces inherited from interface Map
Map.Entry<K,V>
 
Field Summary
protected static String DEFAULT_SUFFIX
           
protected static String TMP_PREFIX
           
 
Fields inherited from interface org.ini4j.Registry
ESCAPE_CHAR, FILE_ENCODING, KEY_SEPARATOR, LINE_SEPARATOR, TYPE_SEPARATOR, VERSION
 
Fields inherited from interface org.ini4j.Profile
PATH_SEPARATOR
 
Constructor Summary
Reg()
           
Reg(File input)
           
Reg(InputStream input)
           
Reg(Reader input)
           
Reg(String registryKey)
           
Reg(URL input)
           
 
Method Summary
 Config getConfig()
           
 File getFile()
           
static boolean isWindows()
           
 void load()
           
 void load(File input)
           
 void load(InputStream input)
           
 void load(Reader input)
           
 void load(URL input)
           
protected  IniHandler newBuilder()
           
 void read(String registryKey)
           
 void setConfig(Config value)
           
 void setFile(File value)
           
 void store()
           
 void store(File output)
           
 void store(OutputStream output)
           
 void store(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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ini4j.Registry
get, get, getVersion, put, put, remove, remove, setVersion
 
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.MultiMap
add, add, getAll, length, putAll
 
Methods inherited from interface org.ini4j.CommentedMap
getComment, putComment, removeComment
 
Methods inherited from interface Map
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, putAll, size, values
 

Field Detail

DEFAULT_SUFFIX

protected static final String DEFAULT_SUFFIX
See Also:
Constant Field Values

TMP_PREFIX

protected static final String TMP_PREFIX
See Also:
Constant Field Values
Constructor Detail

Reg

public Reg()

Reg

public Reg(String registryKey)
    throws IOException
Throws:
IOException

Reg

public Reg(File input)
    throws IOException,
           InvalidFileFormatException
Throws:
IOException
InvalidFileFormatException

Reg

public Reg(URL input)
    throws IOException,
           InvalidFileFormatException
Throws:
IOException
InvalidFileFormatException

Reg

public Reg(InputStream input)
    throws IOException,
           InvalidFileFormatException
Throws:
IOException
InvalidFileFormatException

Reg

public Reg(Reader input)
    throws IOException,
           InvalidFileFormatException
Throws:
IOException
InvalidFileFormatException
Method Detail

isWindows

public static boolean isWindows()

getConfig

public Config getConfig()
Specified by:
getConfig in interface Configurable

setConfig

public void setConfig(Config value)
Specified by:
setConfig in interface Configurable

getFile

public File getFile()
Specified by:
getFile in interface Persistable

setFile

public void setFile(File value)
Specified by:
setFile in interface Persistable

load

public void load()
          throws IOException,
                 InvalidFileFormatException
Specified by:
load in interface Persistable
Throws:
IOException
InvalidFileFormatException

load

public void load(InputStream input)
          throws IOException,
                 InvalidFileFormatException
Specified by:
load in interface Persistable
Throws:
IOException
InvalidFileFormatException

load

public void load(URL input)
          throws IOException,
                 InvalidFileFormatException
Specified by:
load in interface Persistable
Throws:
IOException
InvalidFileFormatException

load

public void load(Reader input)
          throws IOException,
                 InvalidFileFormatException
Specified by:
load in interface Persistable
Throws:
IOException
InvalidFileFormatException

load

public void load(File input)
          throws IOException,
                 InvalidFileFormatException
Specified by:
load in interface Persistable
Throws:
IOException
InvalidFileFormatException

read

public void read(String registryKey)
          throws IOException
Throws:
IOException

store

public void store()
           throws IOException
Specified by:
store in interface Persistable
Throws:
IOException

store

public void store(OutputStream output)
           throws IOException
Specified by:
store in interface Persistable
Throws:
IOException

store

public void store(Writer output)
           throws IOException
Specified by:
store in interface Persistable
Throws:
IOException

store

public void store(File output)
           throws IOException
Specified by:
store in interface Persistable
Throws:
IOException

write

public void write()
           throws IOException
Throws:
IOException

newBuilder

protected IniHandler newBuilder()


Copyright © 2011. All Rights Reserved.