public final class bini
extends java.lang.Object
| Constructor and Description |
|---|
bini() |
bini(java.io.File _inf)
Der Konstruktur.
|
bini(java.io.InputStream _infis) |
| Modifier and Type | Method and Description |
|---|---|
netrexx.lang.Rexx |
_getval(netrexx.lang.Rexx section,
netrexx.lang.Rexx variable) |
void |
buildconf()
Die Kernroutine: Sie öffnet eine Datei und baut die inneren Verwaltungsstrukturen auf.
|
void |
buildconf(java.io.BufferedReader br) |
void |
commentOut(netrexx.lang.Rexx _section,
netrexx.lang.Rexx _variable,
netrexx.lang.Rexx _comment) |
boolean |
doUpdate()
wie doUpdate(Rexx), nur nimmt Sie sich das Infdatum selbst auf protected properties.
|
long |
doUpdate(long l)
Halbautomatisches Neuladen, falls das Inifile auf dem Datenträger inzwischen neuer
ist.
|
netrexx.lang.Rexx |
getCommentedOut(netrexx.lang.Rexx _section,
netrexx.lang.Rexx _variable) |
netrexx.lang.Rexx |
getInifileName() |
long |
getInifileTimestamp() |
static bini |
getInstance(java.lang.String _PID) |
static bini |
getInstance(java.lang.String _PID,
java.lang.String _PIN) |
static bini |
getInstance(java.lang.String _PID,
java.lang.String _PIN,
boolean forceNewInstance) |
java.util.Properties |
getSectionAsProperties(java.lang.String _section) |
java.util.Properties |
getSectionAsProperties(java.lang.String _section,
java.util.Properties props) |
java.lang.String[] |
getSections(java.lang.String _prefix)
Sections may contain of two parts like "ThisIsTheMainPart.ThisIsTheSuffix".
|
netrexx.lang.Rexx |
getval(netrexx.lang.Rexx section,
netrexx.lang.Rexx variable)
Holt Wert aus dem Inifile: Sektion,Variable
|
netrexx.lang.Rexx |
getval(netrexx.lang.Rexx section,
netrexx.lang.Rexx variable,
netrexx.lang.Rexx $default)
Holt Wert mit Default aus dem Inifile: Sektion,Variable,Default
|
boolean |
getValueAsBool(java.lang.String _section,
java.lang.String _variable) |
boolean |
getValueAsBool(java.lang.String _section,
java.lang.String _variable,
boolean _default) |
int |
getValueAsInt(java.lang.String _section,
java.lang.String _variable) |
int |
getValueAsInt(java.lang.String _section,
java.lang.String _variable,
int _default) |
java.lang.String |
getValueAsString(java.lang.String _section,
java.lang.String _variable) |
java.lang.String |
getValueAsString(java.lang.String _section,
java.lang.String _variable,
java.lang.String _default) |
netrexx.lang.Rexx |
getvalWithUpdateAllowed(netrexx.lang.Rexx section,
netrexx.lang.Rexx variable)
Holt einen Wert auf dem Inifile und updatet ggfs. die Inistrukturen vorher.
|
boolean |
hasSection(java.lang.String section) |
java.lang.String |
mergeStateWithSource(java.io.BufferedReader _reader)
Merges the current configuration values with the structure of the source reader.
|
void |
reload()
Manuelles Neuladen der Ini-Struktur.
|
void |
save()
Persists the current in-memory configuration to the file system.
|
java.lang.String |
save(java.io.BufferedReader _reader)
Deprecated.
|
void |
setval(netrexx.lang.Rexx _section,
netrexx.lang.Rexx _variable,
netrexx.lang.Rexx _value) |
public bini(java.io.File _inf)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOExceptionjava.io.FileNotFoundExceptionpublic bini(java.io.InputStream _infis)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOExceptionjava.io.FileNotFoundExceptionpublic bini()
public static bini getInstance(java.lang.String _PID)
public static bini getInstance(java.lang.String _PID, java.lang.String _PIN)
public static bini getInstance(java.lang.String _PID, java.lang.String _PIN, boolean forceNewInstance)
public netrexx.lang.Rexx getInifileName()
public long getInifileTimestamp()
public void reload()
public long doUpdate(long l)
public boolean doUpdate()
public void buildconf()
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOExceptionjava.io.FileNotFoundExceptionpublic void buildconf(java.io.BufferedReader br)
throws java.io.IOException
java.io.IOExceptionpublic netrexx.lang.Rexx getval(netrexx.lang.Rexx section,
netrexx.lang.Rexx variable)
public netrexx.lang.Rexx _getval(netrexx.lang.Rexx section,
netrexx.lang.Rexx variable)
public netrexx.lang.Rexx getval(netrexx.lang.Rexx section,
netrexx.lang.Rexx variable,
netrexx.lang.Rexx $default)
public java.lang.String getValueAsString(java.lang.String _section,
java.lang.String _variable)
public java.lang.String getValueAsString(java.lang.String _section,
java.lang.String _variable,
java.lang.String _default)
public boolean getValueAsBool(java.lang.String _section,
java.lang.String _variable)
public boolean getValueAsBool(java.lang.String _section,
java.lang.String _variable,
boolean _default)
public int getValueAsInt(java.lang.String _section,
java.lang.String _variable)
public int getValueAsInt(java.lang.String _section,
java.lang.String _variable,
int _default)
public boolean hasSection(java.lang.String section)
public java.util.Properties getSectionAsProperties(java.lang.String _section)
public java.util.Properties getSectionAsProperties(java.lang.String _section,
java.util.Properties props)
public netrexx.lang.Rexx getvalWithUpdateAllowed(netrexx.lang.Rexx section,
netrexx.lang.Rexx variable)
public java.lang.String[] getSections(java.lang.String _prefix)
public void setval(netrexx.lang.Rexx _section,
netrexx.lang.Rexx _variable,
netrexx.lang.Rexx _value)
public void commentOut(netrexx.lang.Rexx _section,
netrexx.lang.Rexx _variable,
netrexx.lang.Rexx _comment)
public netrexx.lang.Rexx getCommentedOut(netrexx.lang.Rexx _section,
netrexx.lang.Rexx _variable)
public void save()
throws java.io.IOException,
java.io.FileNotFoundException
This method reads the original configuration file to preserve formatting
and comments, merges the current values, and overwrites the file defined
in the inf variable.
IOException - If an I/O error occurs while reading the template or writing the file.FileNotFoundException - If the source file cannot be found.IRuntimeException - If the configuration was loaded from a stream (streamOnly is true),
preventing a file-system write-back.@Deprecated public java.lang.String save(java.io.BufferedReader _reader)
mergeStateWithSource(BufferedReader)public java.lang.String mergeStateWithSource(java.io.BufferedReader _reader)
This method iterates through the provided reader (representing the original file content). It preserves existing comments and structure. It replaces values for existing keys and appends new keys to their respective sections.
Note: This method currently does not support multi-line entries.
_reader - A BufferedReader providing the source configuration text/template.Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.