Package org.ini4j
Class Options
- java.lang.Object
-
- org.ini4j.BasicMultiMap<K,V>
-
- org.ini4j.CommonMultiMap<java.lang.String,java.lang.String>
-
- org.ini4j.BasicOptionMap
-
- org.ini4j.Options
-
- All Implemented Interfaces:
java.io.Serializable,java.util.Map<java.lang.String,java.lang.String>,CommentedMap<java.lang.String,java.lang.String>,Configurable,MultiMap<java.lang.String,java.lang.String>,OptionMap,Persistable
public class Options extends BasicOptionMap implements Persistable, Configurable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComment()ConfiggetConfig()java.io.FilegetFile()voidload()voidload(java.io.File input)voidload(java.io.InputStream input)voidload(java.io.Reader input)voidload(java.net.URL input)protected OptionsHandlernewBuilder()voidsetComment(java.lang.String value)voidsetConfig(Config value)voidsetFile(java.io.File value)voidstore()voidstore(java.io.File output)voidstore(java.io.OutputStream output)voidstore(java.io.Writer output)protected voidstore(OptionsHandler formatter)-
Methods inherited from class org.ini4j.BasicOptionMap
add, add, as, as, fetch, fetch, fetch, fetch, fetchAll, from, from, 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 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
-
Options
public Options()
-
Options
public Options(java.io.Reader input) throws java.io.IOException, InvalidFileFormatException- Throws:
java.io.IOExceptionInvalidFileFormatException
-
Options
public Options(java.io.InputStream input) throws java.io.IOException, InvalidFileFormatException- Throws:
java.io.IOExceptionInvalidFileFormatException
-
Options
public Options(java.net.URL input) throws java.io.IOException, InvalidFileFormatException- Throws:
java.io.IOExceptionInvalidFileFormatException
-
Options
public Options(java.io.File input) throws java.io.IOException, InvalidFileFormatException- Throws:
java.io.IOExceptionInvalidFileFormatException
-
-
Method Detail
-
getComment
public java.lang.String getComment()
-
setComment
public void setComment(java.lang.String value)
-
getConfig
public Config getConfig()
- Specified by:
getConfigin interfaceConfigurable
-
setConfig
public void setConfig(Config value)
- Specified by:
setConfigin interfaceConfigurable
-
getFile
public java.io.File getFile()
- Specified by:
getFilein interfacePersistable
-
setFile
public void setFile(java.io.File value)
- Specified by:
setFilein interfacePersistable
-
load
public void load() throws java.io.IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
java.io.IOExceptionInvalidFileFormatException
-
load
public void load(java.io.InputStream input) throws java.io.IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
java.io.IOExceptionInvalidFileFormatException
-
load
public void load(java.io.Reader input) throws java.io.IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
java.io.IOExceptionInvalidFileFormatException
-
load
public void load(java.net.URL input) throws java.io.IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
java.io.IOExceptionInvalidFileFormatException
-
load
public void load(java.io.File input) throws java.io.IOException, InvalidFileFormatException- Specified by:
loadin interfacePersistable- Throws:
java.io.IOExceptionInvalidFileFormatException
-
store
public void store() throws java.io.IOException- Specified by:
storein interfacePersistable- Throws:
java.io.IOException
-
store
public void store(java.io.OutputStream output) throws java.io.IOException- Specified by:
storein interfacePersistable- Throws:
java.io.IOException
-
store
public void store(java.io.Writer output) throws java.io.IOException- Specified by:
storein interfacePersistable- Throws:
java.io.IOException
-
store
public void store(java.io.File output) throws java.io.IOException- Specified by:
storein interfacePersistable- Throws:
java.io.IOException
-
newBuilder
protected OptionsHandler newBuilder()
-
store
protected void store(OptionsHandler formatter) throws java.io.IOException
- Throws:
java.io.IOException
-
-