org.ini4j
Class Options

Object
  extended by org.ini4j.BasicMultiMap<K,V>
      extended by org.ini4j.CommonMultiMap<String,String>
          extended by org.ini4j.BasicOptionMap
              extended by org.ini4j.Options
All Implemented Interfaces:
Serializable, Map<String,String>, CommentedMap<String,String>, Configurable, MultiMap<String,String>, OptionMap, Persistable

public class Options
extends BasicOptionMap
implements Persistable, Configurable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface Map
Map.Entry<K,V>
 
Constructor Summary
Options()
           
Options(File input)
           
Options(InputStream input)
           
Options(Reader input)
           
Options(URL input)
           
 
Method Summary
 String getComment()
           
 Config getConfig()
           
 File getFile()
           
 void load()
           
 void load(File input)
           
 void load(InputStream input)
           
 void load(Reader input)
           
 void load(URL input)
           
protected  OptionsHandler newBuilder()
           
 void setComment(String value)
           
 void setConfig(Config value)
           
 void setFile(File value)
           
 void store()
           
 void store(File output)
           
protected  void store(OptionsHandler formatter)
           
 void store(OutputStream output)
           
 void store(Writer output)
           
 
Methods inherited from class org.ini4j.BasicOptionMap
add, add, as, as, fetch, fetch, fetch, fetch, fetch, fetch, fetchAll, from, from, get, get, get, get, getAll, put, put, putAll, to, to
 
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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ini4j.MultiMap
add, add, get, getAll, length, put, putAll, remove
 
Methods inherited from interface org.ini4j.CommentedMap
getComment, putComment, removeComment
 
Methods inherited from interface Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

Options

public Options()

Options

public Options(Reader input)
        throws IOException,
               InvalidFileFormatException
Throws:
IOException
InvalidFileFormatException

Options

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

Options

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

Options

public Options(File input)
        throws IOException,
               InvalidFileFormatException
Throws:
IOException
InvalidFileFormatException
Method Detail

getComment

public String getComment()

setComment

public void setComment(String value)

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(Reader 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(File input)
          throws IOException,
                 InvalidFileFormatException
Specified by:
load in interface Persistable
Throws:
IOException
InvalidFileFormatException

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

newBuilder

protected OptionsHandler newBuilder()

store

protected void store(OptionsHandler formatter)
              throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.