org.ini4j
Class Ini

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<java.lang.String,Ini.Section>
              extended by org.ini4j.Ini
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,Ini.Section>

public class Ini
extends java.util.LinkedHashMap<java.lang.String,Ini.Section>

See Also:
Serialized Form

Nested Class Summary
(package private)  class Ini.BeanInvocationHandler
           
(package private)  class Ini.Builder
           
 class Ini.Section
           
 
Field Summary
private  java.util.Map<java.lang.Class,java.lang.Object> _beans
           
private static java.lang.String OPERATOR
           
private static java.lang.String SUBST_BEGIN
           
private static int SUBST_BEGIN_LEN
           
private static char SUBST_CHAR
           
private static java.lang.String SUBST_END
           
private static int SUBST_END_LEN
           
private static java.lang.String SUBST_ENVIRONMENT
           
private static char SUBST_ESCAPE
           
private static java.lang.String SUBST_PROPERTY
           
private static char SUBST_SEPARATOR
           
 
Constructor Summary
Ini()
           
Ini(java.io.InputStream input)
           
Ini(java.io.Reader input)
           
Ini(java.net.URL input)
           
 
Method Summary
 Ini.Section add(java.lang.String name)
           
 void load(java.io.InputStream input)
           
 void load(java.io.Reader input)
           
 void load(java.net.URL input)
           
 void loadFromXML(java.io.InputStream input)
           
 void loadFromXML(java.io.Reader input)
           
 void loadFromXML(java.net.URL input)
           
 Ini.Section remove(Ini.Section section)
           
protected  void resolve(java.lang.StringBuilder buffer, Ini.Section owner)
           
 void store(java.io.OutputStream output)
           
 void store(java.io.Writer output)
           
 void storeToXML(java.io.OutputStream output)
           
 void storeToXML(java.io.Writer output)
           
<T> T
to(java.lang.Class<T> clazz)
           
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Field Detail

OPERATOR

private static final java.lang.String OPERATOR
See Also:
Constant Field Values

SUBST_CHAR

private static final char SUBST_CHAR
See Also:
Constant Field Values

SUBST_BEGIN

private static final java.lang.String SUBST_BEGIN
See Also:
Constant Field Values

SUBST_BEGIN_LEN

private static final int SUBST_BEGIN_LEN

SUBST_END

private static final java.lang.String SUBST_END
See Also:
Constant Field Values

SUBST_END_LEN

private static final int SUBST_END_LEN

SUBST_ESCAPE

private static final char SUBST_ESCAPE
See Also:
Constant Field Values

SUBST_SEPARATOR

private static final char SUBST_SEPARATOR
See Also:
Constant Field Values

SUBST_PROPERTY

private static final java.lang.String SUBST_PROPERTY
See Also:
Constant Field Values

SUBST_ENVIRONMENT

private static final java.lang.String SUBST_ENVIRONMENT
See Also:
Constant Field Values

_beans

private java.util.Map<java.lang.Class,java.lang.Object> _beans
Constructor Detail

Ini

public Ini()

Ini

public Ini(java.io.Reader input)
    throws java.io.IOException,
           InvalidIniFormatException
Throws:
java.io.IOException
InvalidIniFormatException

Ini

public Ini(java.io.InputStream input)
    throws java.io.IOException,
           InvalidIniFormatException
Throws:
java.io.IOException
InvalidIniFormatException

Ini

public Ini(java.net.URL input)
    throws java.io.IOException,
           InvalidIniFormatException
Throws:
java.io.IOException
InvalidIniFormatException
Method Detail

add

public Ini.Section add(java.lang.String name)

remove

public Ini.Section remove(Ini.Section section)

store

public void store(java.io.OutputStream output)
           throws java.io.IOException
Throws:
java.io.IOException

store

public void store(java.io.Writer output)
           throws java.io.IOException
Throws:
java.io.IOException

load

public void load(java.io.InputStream input)
          throws java.io.IOException,
                 InvalidIniFormatException
Throws:
java.io.IOException
InvalidIniFormatException

load

public void load(java.io.Reader input)
          throws java.io.IOException,
                 InvalidIniFormatException
Throws:
java.io.IOException
InvalidIniFormatException

load

public void load(java.net.URL input)
          throws java.io.IOException,
                 InvalidIniFormatException
Throws:
java.io.IOException
InvalidIniFormatException

storeToXML

public void storeToXML(java.io.OutputStream output)
                throws java.io.IOException
Throws:
java.io.IOException

storeToXML

public void storeToXML(java.io.Writer output)
                throws java.io.IOException
Throws:
java.io.IOException

loadFromXML

public void loadFromXML(java.io.InputStream input)
                 throws java.io.IOException,
                        InvalidIniFormatException
Throws:
java.io.IOException
InvalidIniFormatException

loadFromXML

public void loadFromXML(java.io.Reader input)
                 throws java.io.IOException,
                        InvalidIniFormatException
Throws:
java.io.IOException
InvalidIniFormatException

loadFromXML

public void loadFromXML(java.net.URL input)
                 throws java.io.IOException,
                        InvalidIniFormatException
Throws:
java.io.IOException
InvalidIniFormatException

to

public <T> T to(java.lang.Class<T> clazz)

resolve

protected void resolve(java.lang.StringBuilder buffer,
                       Ini.Section owner)