public class Reg extends BasicRegistry implements Registry, Persistable, Configurable
Registry.Hive, Registry.Key, Registry.TypeProfile.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, VERSIONPATH_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, setVersionadd, as, as, fetch, fetch, get, get, getFooterComment, getHeaderComment, put, removeOptionFromSection, setFooterComment, setHeaderCommentaddEmptyLine, clear, getComment, getNewLineCount, putAll, putComment, removeCommentadd, add, containsKey, containsValue, entrySet, getAll, isEmpty, keySet, length, putAll, size, toString, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, get, getVersion, put, put, remove, remove, setVersionadd, add, as, as, fetch, fetch, get, get, getFooterComment, getHeaderComment, put, remove, removeOptionFromSection, setFooterComment, setHeaderCommentadd, add, getAll, length, putAlladdEmptyLine, getComment, getNewLineCount, putComment, removeCommentclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, valuesprotected static final String DEFAULT_SUFFIX
protected static final String TMP_PREFIX
public Reg()
public Reg(String registryKey) throws IOException
IOExceptionpublic Reg(File input) throws IOException, InvalidFileFormatException
public Reg(URL input) throws IOException, InvalidFileFormatException
public Reg(InputStream input) throws IOException, InvalidFileFormatException
public Reg(Reader input) throws IOException, InvalidFileFormatException
public static boolean isWindows()
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(URL input) throws IOException, InvalidFileFormatException
load in interface PersistableIOExceptionInvalidFileFormatExceptionpublic void load(Reader input) throws IOException, InvalidFileFormatException
load in interface PersistableIOExceptionInvalidFileFormatExceptionpublic void load(File input) throws IOException, InvalidFileFormatException
load in interface PersistableIOExceptionInvalidFileFormatExceptionpublic void read(String registryKey) throws IOException
IOExceptionpublic 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 PersistableIOExceptionpublic void write()
throws IOException
IOExceptionprotected IniHandler newBuilder()
Copyright © 2001–2025. All rights reserved.