public class Reg extends BasicRegistry implements Registry, Persistable, Configurable
Registry.Hive, Registry.Key, Registry.Type
Profile.Section
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_SUFFIX |
protected static String |
TMP_PREFIX |
ESCAPE_CHAR, FILE_ENCODING, KEY_SEPARATOR, LINE_SEPARATOR, TYPE_SEPARATOR, VERSION
PATH_SEPARATOR
Constructor and Description |
---|
Reg() |
Reg(File input) |
Reg(InputStream input) |
Reg(Reader input) |
Reg(String registryKey) |
Reg(URL input) |
Modifier and Type | Method and Description |
---|---|
Config |
getConfig() |
File |
getFile() |
static boolean |
isWindows() |
void |
load() |
void |
load(File input) |
void |
load(InputStream input) |
void |
load(Reader input) |
void |
load(URL input) |
protected IniHandler |
newBuilder() |
void |
read(String registryKey) |
void |
setConfig(Config value) |
void |
setFile(File value) |
void |
store() |
void |
store(File output) |
void |
store(OutputStream output) |
void |
store(Writer output) |
void |
write() |
add, get, get, getVersion, put, put, remove, remove, remove, setVersion
add, as, as, fetch, fetch, get, get, getComment, put, remove, setComment
clear, getComment, putAll, putComment, removeComment
add, add, containsKey, containsValue, entrySet, getAll, isEmpty, keySet, length, putAll, size, toString, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, get, getVersion, put, put, remove, remove, setVersion
add, add, as, as, fetch, fetch, get, get, getComment, put, remove, remove, setComment
getComment, putComment, removeComment
protected static final String DEFAULT_SUFFIX
protected static final String TMP_PREFIX
public Reg()
public Reg(String registryKey) throws IOException
IOException
public Reg(File input) throws IOException, InvalidFileFormatException
IOException
InvalidFileFormatException
public Reg(URL input) throws IOException, InvalidFileFormatException
IOException
InvalidFileFormatException
public Reg(InputStream input) throws IOException, InvalidFileFormatException
IOException
InvalidFileFormatException
public Reg(Reader input) throws IOException, InvalidFileFormatException
IOException
InvalidFileFormatException
public static boolean isWindows()
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(URL 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(File input) throws IOException, InvalidFileFormatException
load
in interface Persistable
IOException
InvalidFileFormatException
public void read(String registryKey) throws IOException
IOException
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
public void write() throws IOException
IOException
protected IniHandler newBuilder()