public class Options extends BasicOptionMap implements Persistable, Configurable
| Constructor and Description |
|---|
Options() |
Options(File input) |
Options(InputStream input) |
Options(Reader input) |
Options(URL input) |
| Modifier and Type | Method and 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) |
protected void |
store(OptionsHandler formatter) |
void |
store(OutputStream output) |
void |
store(Writer output) |
add, add, as, as, fetch, fetch, fetch, fetch, fetch, fetch, fetchAll, from, from, get, get, get, get, getAll, put, put, putAll, to, toclear, getComment, putAll, putComment, remove, remove, removeCommentadd, add, containsKey, containsValue, entrySet, get, get, getAll, isEmpty, keySet, length, put, put, putAll, size, toString, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, get, getAll, length, put, putAll, removegetComment, putComment, removeCommentpublic Options()
public Options(Reader input) throws IOException, InvalidFileFormatException
public Options(InputStream input) throws IOException, InvalidFileFormatException
public Options(URL input) throws IOException, InvalidFileFormatException
public Options(File input) throws IOException, InvalidFileFormatException
public String getComment()
public void setComment(String value)
public Config getConfig()
getConfig in interface Configurablepublic void setConfig(Config value)
setConfig in interface Configurablepublic File getFile()
getFile in interface Persistablepublic void setFile(File value)
setFile in interface Persistablepublic void load()
throws IOException,
InvalidFileFormatException
load in interface PersistableIOExceptionInvalidFileFormatExceptionpublic void load(InputStream input) throws IOException, InvalidFileFormatException
load in interface PersistableIOExceptionInvalidFileFormatExceptionpublic void load(Reader input) throws IOException, InvalidFileFormatException
load in interface PersistableIOExceptionInvalidFileFormatExceptionpublic void load(URL input) throws IOException, InvalidFileFormatException
load in interface PersistableIOExceptionInvalidFileFormatExceptionpublic void load(File input) throws IOException, InvalidFileFormatException
load in interface PersistableIOExceptionInvalidFileFormatExceptionpublic void store()
throws IOException
store in interface PersistableIOExceptionpublic void store(OutputStream output) throws IOException
store in interface PersistableIOExceptionpublic void store(Writer output) throws IOException
store in interface PersistableIOExceptionpublic void store(File output) throws IOException
store in interface PersistableIOExceptionprotected OptionsHandler newBuilder()
protected void store(OptionsHandler formatter) throws IOException
IOExceptionCopyright © 2015. All rights reserved.