Map<String,String>
, CommentedMap<String,String>
, Configurable
, MultiMap<String,String>
, OptionMap
, Persistable
public class Options extends BasicOptionMap implements Persistable, Configurable
Constructor | Description |
---|---|
Options() |
|
Options(File input) |
|
Options(InputStream input) |
|
Options(Reader input) |
|
Options(URL input) |
Modifier and Type | Method | Description |
---|---|---|
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) |
|
void |
store(OutputStream output) |
|
void |
store(Writer output) |
|
protected void |
store(OptionsHandler formatter) |
add, add, containsKey, containsValue, entrySet, get, get, getAll, isEmpty, keySet, length, put, put, putAll, size, toString, values
add, add, as, as, fetch, fetch, fetch, fetch, fetchAll, from, from, get, get, getAll, put, put, putAll, to, to
getComment, putComment, removeComment
clear, getComment, putAll, putComment, remove, remove, removeComment
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entry, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, of, of, of, of, of, of, of, of, of, of, of, ofEntries, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public Options()
public Options(Reader input) throws IOException, InvalidFileFormatException
IOException
InvalidFileFormatException
public Options(InputStream input) throws IOException, InvalidFileFormatException
IOException
InvalidFileFormatException
public Options(URL input) throws IOException, InvalidFileFormatException
IOException
InvalidFileFormatException
public Options(File input) throws IOException, InvalidFileFormatException
IOException
InvalidFileFormatException
public String getComment()
public void setComment(String value)
public Config getConfig()
getConfig
in interface Configurable
public void setConfig(Config value)
setConfig
in interface Configurable
public File getFile()
getFile
in interface Persistable
public void setFile(File value)
setFile
in interface Persistable
public void load() throws IOException, InvalidFileFormatException
load
in interface Persistable
IOException
InvalidFileFormatException
public void load(InputStream input) throws IOException, InvalidFileFormatException
load
in interface Persistable
IOException
InvalidFileFormatException
public void load(Reader input) throws IOException, InvalidFileFormatException
load
in interface Persistable
IOException
InvalidFileFormatException
public void load(URL input) throws IOException, InvalidFileFormatException
load
in interface Persistable
IOException
InvalidFileFormatException
public void load(File input) throws IOException, InvalidFileFormatException
load
in interface Persistable
IOException
InvalidFileFormatException
public void store() throws IOException
store
in interface Persistable
IOException
public void store(OutputStream output) throws IOException
store
in interface Persistable
IOException
public void store(Writer output) throws IOException
store
in interface Persistable
IOException
public void store(File output) throws IOException
store
in interface Persistable
IOException
protected OptionsHandler newBuilder()
protected void store(OptionsHandler formatter) throws IOException
IOException