https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Java-Properties-Datei Java-Properties-Datei - Versionsgeschichte 2025-07-15T18:23:36Z Versionsgeschichte dieser Seite in Wikipedia MediaWiki 1.45.0-wmf.9 https://de.wikipedia.org/w/index.php?title=Java-Properties-Datei&diff=249414150&oldid=prev Karl432: Benennung des Zeichens „#“ „Rautezeichen“ statt „Doppelkreuz“ 2024-10-14T10:48:42Z <p>Benennung des Zeichens „#“ „Rautezeichen“ statt „Doppelkreuz“</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 14. Oktober 2024, 12:48 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 18:</td> <td colspan="2" class="diff-lineno">Zeile 18:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Das Beispiel enthält zwei [[Kommentar (Programmierung)|Kommentarzeilen]] und definiert sechs Werte für die Namen &lt;code&gt;wenig&lt;/code&gt;, &lt;code&gt;pi&lt;/code&gt;, &lt;code&gt;lang&lt;/code&gt;, &lt;code&gt;vieltext&lt;/code&gt;, &lt;code&gt;paramText&lt;/code&gt; und &lt;code&gt;unicodeText&lt;/code&gt;.</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Das Beispiel enthält zwei [[Kommentar (Programmierung)|Kommentarzeilen]] und definiert sechs Werte für die Namen &lt;code&gt;wenig&lt;/code&gt;, &lt;code&gt;pi&lt;/code&gt;, &lt;code&gt;lang&lt;/code&gt;, &lt;code&gt;vieltext&lt;/code&gt;, &lt;code&gt;paramText&lt;/code&gt; und &lt;code&gt;unicodeText&lt;/code&gt;.</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Wie sich aus dem Beispiel erkennen lässt, gibt es Kommentarzeilen, die mit einem [[Rautezeichen<del style="font-weight: bold; text-decoration: none;">|Doppelkreuz</del>]] &lt;code&gt;#&lt;/code&gt; oder einem [[Ausrufezeichen]] &lt;code&gt;!&lt;/code&gt; beginnen, und Datenzeilen, in denen ein Name und ein Text definiert werden.&lt;ref name="store"&gt;[https://docs.oracle.com/javase/7/docs/api/java/util/Properties.html ''Properties''.] Java API Specification&lt;/ref&gt;</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Wie sich aus dem Beispiel erkennen lässt, gibt es Kommentarzeilen, die mit einem [[Rautezeichen]] &lt;code&gt;#&lt;/code&gt; oder einem [[Ausrufezeichen]] &lt;code&gt;!&lt;/code&gt; beginnen, und Datenzeilen, in denen ein Name und ein Text definiert werden.&lt;ref name="store"&gt;[https://docs.oracle.com/javase/7/docs/api/java/util/Properties.html ''Properties''.] Java API Specification&lt;/ref&gt;</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Name und Text können auf drei Arten voneinander getrennt werden, wobei die Trennzeichen nicht zum Schlüssel oder Text gehören.&lt;ref name="store" /&gt;</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Name und Text können auf drei Arten voneinander getrennt werden, wobei die Trennzeichen nicht zum Schlüssel oder Text gehören.&lt;ref name="store" /&gt;</div></td> </tr> </table> Karl432 https://de.wikipedia.org/w/index.php?title=Java-Properties-Datei&diff=249412136&oldid=prev Grundausstattung: lf 2024-10-14T09:29:03Z <p>lf</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 14. Oktober 2024, 11:29 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 18:</td> <td colspan="2" class="diff-lineno">Zeile 18:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Das Beispiel enthält zwei [[Kommentar (Programmierung)|Kommentarzeilen]] und definiert sechs Werte für die Namen &lt;code&gt;wenig&lt;/code&gt;, &lt;code&gt;pi&lt;/code&gt;, &lt;code&gt;lang&lt;/code&gt;, &lt;code&gt;vieltext&lt;/code&gt;, &lt;code&gt;paramText&lt;/code&gt; und &lt;code&gt;unicodeText&lt;/code&gt;.</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Das Beispiel enthält zwei [[Kommentar (Programmierung)|Kommentarzeilen]] und definiert sechs Werte für die Namen &lt;code&gt;wenig&lt;/code&gt;, &lt;code&gt;pi&lt;/code&gt;, &lt;code&gt;lang&lt;/code&gt;, &lt;code&gt;vieltext&lt;/code&gt;, &lt;code&gt;paramText&lt;/code&gt; und &lt;code&gt;unicodeText&lt;/code&gt;.</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Wie sich aus dem Beispiel erkennen lässt, gibt es Kommentarzeilen, die mit einem [[<del style="font-weight: bold; text-decoration: none;">Doppelkreuz (Schriftzeichen)</del>|Doppelkreuz]] &lt;code&gt;#&lt;/code&gt; oder einem [[Ausrufezeichen]] &lt;code&gt;!&lt;/code&gt; beginnen, und Datenzeilen, in denen ein Name und ein Text definiert werden.&lt;ref name="store"&gt;[https://docs.oracle.com/javase/7/docs/api/java/util/Properties.html ''Properties''.] Java API Specification&lt;/ref&gt;</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Wie sich aus dem Beispiel erkennen lässt, gibt es Kommentarzeilen, die mit einem [[<ins style="font-weight: bold; text-decoration: none;">Rautezeichen</ins>|Doppelkreuz]] &lt;code&gt;#&lt;/code&gt; oder einem [[Ausrufezeichen]] &lt;code&gt;!&lt;/code&gt; beginnen, und Datenzeilen, in denen ein Name und ein Text definiert werden.&lt;ref name="store"&gt;[https://docs.oracle.com/javase/7/docs/api/java/util/Properties.html ''Properties''.] Java API Specification&lt;/ref&gt;</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Name und Text können auf drei Arten voneinander getrennt werden, wobei die Trennzeichen nicht zum Schlüssel oder Text gehören.&lt;ref name="store" /&gt;</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Name und Text können auf drei Arten voneinander getrennt werden, wobei die Trennzeichen nicht zum Schlüssel oder Text gehören.&lt;ref name="store" /&gt;</div></td> </tr> </table> Grundausstattung https://de.wikipedia.org/w/index.php?title=Java-Properties-Datei&diff=237737165&oldid=prev Trustable: Einleitung 2023-09-29T17:57:14Z <p>Einleitung</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 29. September 2023, 19:57 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 1:</td> <td colspan="2" class="diff-lineno">Zeile 1:</td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Eine '''Java-Properties-Datei''' ist eine [[Konfigurationsdatei]], die hauptsächlich im Umfeld der Programmiersprache [[Java (Programmiersprache)|Java]] verwendet wird. Eine ''Property'' (deutsch „Eigenschaft“) ist in diesem Zusammenhang ein Text, der unter einem bestimmten Namen abgelegt ist. Java-Properties-Dateien haben üblicherweise die [[Dateiendung]] &lt;code&gt;.properties&lt;/code&gt;.</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Eine '''Java-Properties-Datei''' ist eine [[Konfigurationsdatei]], die hauptsächlich<ins style="font-weight: bold; text-decoration: none;"> zur Speicherung von Anwendungsdaten</ins> im Umfeld der Programmiersprache [[Java (Programmiersprache)|Java]] verwendet wird. Eine ''Property'' (deutsch „Eigenschaft“) ist in diesem Zusammenhang ein Text, der unter einem bestimmten Namen abgelegt ist. Java-Properties-Dateien haben üblicherweise die [[Dateiendung]] &lt;code&gt;.properties&lt;/code&gt;.</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Struktur ==</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Struktur ==</div></td> </tr> </table> Trustable https://de.wikipedia.org/w/index.php?title=Java-Properties-Datei&diff=237737134&oldid=prev Trustable: Einleitung 2023-09-29T17:55:53Z <p>Einleitung</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 29. September 2023, 19:55 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 1:</td> <td colspan="2" class="diff-lineno">Zeile 1:</td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Eine '''Java-Properties-Datei''' ist eine [[<del style="font-weight: bold; text-decoration: none;">Textdatei</del>]], die <del style="font-weight: bold; text-decoration: none;">in</del> der [[Java (Programmiersprache)|<del style="font-weight: bold; text-decoration: none;">Programmiersprache </del>Java<del style="font-weight: bold; text-decoration: none;">]] als einfacher [[Konfiguration (Computer)|Konfigurationsmechanismus</del>]] verwendet wird. Eine ''Property'' (deutsch „Eigenschaft“) ist in diesem Zusammenhang ein Text, der unter einem bestimmten Namen abgelegt ist. Java-Properties-Dateien haben üblicherweise die [[Dateiendung]] &lt;code&gt;.properties&lt;/code&gt;.</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Eine '''Java-Properties-Datei''' ist eine [[<ins style="font-weight: bold; text-decoration: none;">Konfigurationsdatei</ins>]], die <ins style="font-weight: bold; text-decoration: none;">hauptsächlich im Umfeld</ins> der<ins style="font-weight: bold; text-decoration: none;"> Programmiersprache</ins> [[Java (Programmiersprache)|Java]] verwendet wird. Eine ''Property'' (deutsch „Eigenschaft“) ist in diesem Zusammenhang ein Text, der unter einem bestimmten Namen abgelegt ist. Java-Properties-Dateien haben üblicherweise die [[Dateiendung]] &lt;code&gt;.properties&lt;/code&gt;.</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Struktur ==</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Struktur ==</div></td> </tr> </table> Trustable https://de.wikipedia.org/w/index.php?title=Java-Properties-Datei&diff=237737087&oldid=prev Trustable: tiefere Kategorie 2023-09-29T17:54:25Z <p>tiefere Kategorie</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 29. September 2023, 19:54 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 70:</td> <td colspan="2" class="diff-lineno">Zeile 70:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Datenserialisierungformat]]</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Datenserialisierungformat]]</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:<del style="font-weight: bold; text-decoration: none;">Konfiguration</del>]]</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:<ins style="font-weight: bold; text-decoration: none;">Konfigurationsdatei</ins>]]</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Java (Programmiersprache)]]</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Java (Programmiersprache)]]</div></td> </tr> </table> Trustable https://de.wikipedia.org/w/index.php?title=Java-Properties-Datei&diff=237736969&oldid=prev Trustable: Kat. 2023-09-29T17:48:07Z <p>Kat.</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 29. September 2023, 19:48 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 58:</td> <td colspan="2" class="diff-lineno">Zeile 58:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Ausgabe:</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Ausgabe:</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Text mit dynamischem Parameter: dynamisch eingesetzter Text</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Text mit dynamischem Parameter: dynamisch eingesetzter Text</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Bei mehreren Ersetzungsparametern muss für „dynText“ ein [[<del style="font-weight: bold; text-decoration: none;">Feld</del> (Datentyp)|Array]] oder eine [[Menge (Datenstruktur)|Menge]] mit den Ersetzungswerten übergeben werden.</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Bei mehreren Ersetzungsparametern muss für „dynText“ ein [[<ins style="font-weight: bold; text-decoration: none;">Array</ins> (Datentyp)|Array]] oder eine [[Menge (Datenstruktur)|Menge]] mit den Ersetzungswerten übergeben werden.</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Streng genommen ist dies kein Feature des Properties-Mechanismus, wird hier jedoch erwähnt, da es in diesem Zusammenhang vielfach Verwendung findet.</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Streng genommen ist dies kein Feature des Properties-Mechanismus, wird hier jedoch erwähnt, da es in diesem Zusammenhang vielfach Verwendung findet.</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 69:</td> <td colspan="2" class="diff-lineno">Zeile 69:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>&lt;references /&gt;</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>&lt;references /&gt;</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:<del style="font-weight: bold; text-decoration: none;">Datenformat</del>]]</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:<ins style="font-weight: bold; text-decoration: none;">Datenserialisierungformat</ins>]]</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Konfiguration]]</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Java (Programmiersprache)]]</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Java (Programmiersprache)]]</div></td> </tr> </table> Trustable https://de.wikipedia.org/w/index.php?title=Java-Properties-Datei&diff=219450679&oldid=prev 2003:C1:4F34:7800:DDFD:22A6:FC59:322: /* Platzhalter */Tippfehler 2022-01-22T22:31:52Z <p><span class="autocomment">Platzhalter: </span>Tippfehler</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 23. Januar 2022, 00:31 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 48:</td> <td colspan="2" class="diff-lineno">Zeile 48:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Platzhalter ==</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Platzhalter ==</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Eine [[Positive und negative Zahlen|nicht negative]] [[ganze Zahl]] in geschweiften Klammern &lt;code&gt;{}&lt;/code&gt; steht für einen Text, der <del style="font-weight: bold; text-decoration: none;">zu</del> [[Laufzeit (Informatik)|Laufzeit]] des Programms ergänzt werden soll. Sinnvollerweise beginnen die Zahlen in den Klammern mit &lt;code&gt;0&lt;/code&gt; und sind [[fortlaufend]]. Sie dürfen mehrfach sowie in beliebiger [[Reihenfolge]] auftreten. Solche Ersetzungen sind für die [[Internationalisierung (Softwareentwicklung)|Internationalisierung]] oder [[Lokalisierung (Softwareentwicklung)|Lokalisierung]] von Programmen sinnvoll, wo dynamisch zu erzeugende Textbestandteile in unterschiedlichen [[Sprache]]n an unterschiedlichen Stellen oder in unterschiedlicher Reihenfolge auszugeben sind.</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Eine [[Positive und negative Zahlen|nicht negative]] [[ganze Zahl]] in geschweiften Klammern &lt;code&gt;{}&lt;/code&gt; steht für einen Text, der <ins style="font-weight: bold; text-decoration: none;">zur</ins> [[Laufzeit (Informatik)|Laufzeit]] des Programms ergänzt werden soll. Sinnvollerweise beginnen die Zahlen in den Klammern mit &lt;code&gt;0&lt;/code&gt; und sind [[fortlaufend]]. Sie dürfen mehrfach sowie in beliebiger [[Reihenfolge]] auftreten. Solche Ersetzungen sind für die [[Internationalisierung (Softwareentwicklung)|Internationalisierung]] oder [[Lokalisierung (Softwareentwicklung)|Lokalisierung]] von Programmen sinnvoll, wo dynamisch zu erzeugende Textbestandteile in unterschiedlichen [[Sprache]]n an unterschiedlichen Stellen oder in unterschiedlicher Reihenfolge auszugeben sind.</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Die Ersetzung des Parameters kann mit folgendem Code realisiert werden:</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Die Ersetzung des Parameters kann mit folgendem Code realisiert werden:</div></td> </tr> </table> 2003:C1:4F34:7800:DDFD:22A6:FC59:322 https://de.wikipedia.org/w/index.php?title=Java-Properties-Datei&diff=214637560&oldid=prev Trustable: linkfix 2021-08-09T21:06:29Z <p>linkfix</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 9. August 2021, 23:06 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 31:</td> <td colspan="2" class="diff-lineno">Zeile 31:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Verwendung in Java-Programmen ==</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Verwendung in Java-Programmen ==</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Eine solche Java-Properties-Datei kann mittels der [[Klasse (<del style="font-weight: bold; text-decoration: none;">objektorientierte Programmierung</del>)|Klasse]] &lt;code&gt;[https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html java.util.Properties]&lt;/code&gt; eingelesen werden. Anschließend können die definierten Werte über deren [[Methode (Programmierung)|Methoden]] abgefragt werden. Das folgende Code-Fragment erzeugt ein Properties-Objekt, liest eine Datei namens &lt;code&gt;beispiel.properties&lt;/code&gt; ein, und legt den Wert der Property &lt;code&gt;lang&lt;/code&gt; in einer Variablen namens &lt;code&gt;sprache&lt;/code&gt; ab.</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Eine solche Java-Properties-Datei kann mittels der [[Klasse (<ins style="font-weight: bold; text-decoration: none;">Objektorientierung</ins>)|Klasse]] &lt;code&gt;[https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html java.util.Properties]&lt;/code&gt; eingelesen werden. Anschließend können die definierten Werte über deren [[Methode (Programmierung)|Methoden]] abgefragt werden. Das folgende Code-Fragment erzeugt ein Properties-Objekt, liest eine Datei namens &lt;code&gt;beispiel.properties&lt;/code&gt; ein, und legt den Wert der Property &lt;code&gt;lang&lt;/code&gt; in einer Variablen namens &lt;code&gt;sprache&lt;/code&gt; ab.</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>&lt;syntaxhighlight lang="java"&gt;</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>&lt;syntaxhighlight lang="java"&gt;</div></td> </tr> </table> Trustable https://de.wikipedia.org/w/index.php?title=Java-Properties-Datei&diff=211674035&oldid=prev Aka: /* Struktur */ https 2021-05-06T17:35:54Z <p><span class="autocomment">Struktur: </span> https</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 6. Mai 2021, 19:35 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 18:</td> <td colspan="2" class="diff-lineno">Zeile 18:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Das Beispiel enthält zwei [[Kommentar (Programmierung)|Kommentarzeilen]] und definiert sechs Werte für die Namen &lt;code&gt;wenig&lt;/code&gt;, &lt;code&gt;pi&lt;/code&gt;, &lt;code&gt;lang&lt;/code&gt;, &lt;code&gt;vieltext&lt;/code&gt;, &lt;code&gt;paramText&lt;/code&gt; und &lt;code&gt;unicodeText&lt;/code&gt;.</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Das Beispiel enthält zwei [[Kommentar (Programmierung)|Kommentarzeilen]] und definiert sechs Werte für die Namen &lt;code&gt;wenig&lt;/code&gt;, &lt;code&gt;pi&lt;/code&gt;, &lt;code&gt;lang&lt;/code&gt;, &lt;code&gt;vieltext&lt;/code&gt;, &lt;code&gt;paramText&lt;/code&gt; und &lt;code&gt;unicodeText&lt;/code&gt;.</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Wie sich aus dem Beispiel erkennen lässt, gibt es Kommentarzeilen, die mit einem [[Doppelkreuz (Schriftzeichen)|Doppelkreuz]] &lt;code&gt;#&lt;/code&gt; oder einem [[Ausrufezeichen]] &lt;code&gt;!&lt;/code&gt; beginnen, und Datenzeilen, in denen ein Name und ein Text definiert werden.&lt;ref name="store"&gt;[<del style="font-weight: bold; text-decoration: none;">http</del>://docs.oracle.com/javase/7/docs/api/java/util/Properties.html ''Properties''.] Java API Specification&lt;/ref&gt;</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Wie sich aus dem Beispiel erkennen lässt, gibt es Kommentarzeilen, die mit einem [[Doppelkreuz (Schriftzeichen)|Doppelkreuz]] &lt;code&gt;#&lt;/code&gt; oder einem [[Ausrufezeichen]] &lt;code&gt;!&lt;/code&gt; beginnen, und Datenzeilen, in denen ein Name und ein Text definiert werden.&lt;ref name="store"&gt;[<ins style="font-weight: bold; text-decoration: none;">https</ins>://docs.oracle.com/javase/7/docs/api/java/util/Properties.html ''Properties''.] Java API Specification&lt;/ref&gt;</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Name und Text können auf drei Arten voneinander getrennt werden, wobei die Trennzeichen nicht zum Schlüssel oder Text gehören.&lt;ref name="store" /&gt;</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Name und Text können auf drei Arten voneinander getrennt werden, wobei die Trennzeichen nicht zum Schlüssel oder Text gehören.&lt;ref name="store" /&gt;</div></td> </tr> </table> Aka https://de.wikipedia.org/w/index.php?title=Java-Properties-Datei&diff=210935542&oldid=prev Till.niermann: /* Internationalisierung */ 2021-04-14T17:38:54Z <p><span class="autocomment">Internationalisierung</span></p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 14. April 2021, 19:38 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 64:</td> <td colspan="2" class="diff-lineno">Zeile 64:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Internationalisierung ==</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Internationalisierung ==</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Ein weiteres Feature des Properties-Mechanismus in Java ist das Aufteilen der Inhalte pro [[Locale]]. Das macht man durch ein Suffix im Dateinamen kenntlich. Eine Properties-Datei &lt;code&gt;messages.properties&lt;/code&gt; speziell für deutschsprachige Texte würde man &lt;code&gt;messages_de.properties&lt;/code&gt; benennen. Das kann man mit der Angabe einer Region noch weiter eingrenzen. Eine Property-Datei für <del style="font-weight: bold; text-decoration: none;">Österreicher</del> würde demnach so benannt: &lt;code&gt;messages_de_AT.properties&lt;/code&gt;. Eine Variante ohne Suffix sollte als Fallback möglichst immer vorhanden sein. Seit Java 9 werden ResourceBundles-Properties standardmäßig mit UTF-8 decodiert, wodurch die unleserlichen Escape-Sequenzen entfallen können. Sollten beim Dekodieren Probleme auftreten, wird es mit ISO 8859-1 automatisch erneut versucht.&lt;ref&gt;{{Internetquelle |url=https://openjdk.java.net/jeps/226 |titel=JEP 226: UTF-8 Property Resource Bundles |abruf=2020-06-22}}&lt;/ref&gt;</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Ein weiteres Feature des Properties-Mechanismus in Java ist das Aufteilen der Inhalte pro [[Locale]]. Das macht man durch ein Suffix im Dateinamen kenntlich. Eine Properties-Datei &lt;code&gt;messages.properties&lt;/code&gt; speziell für deutschsprachige Texte würde man &lt;code&gt;messages_de.properties&lt;/code&gt; benennen. Das kann man mit der Angabe einer Region noch weiter eingrenzen. Eine Property-Datei für <ins style="font-weight: bold; text-decoration: none;">österreichisches Deutsch</ins> würde demnach so benannt: &lt;code&gt;messages_de_AT.properties&lt;/code&gt;. Eine Variante ohne Suffix sollte als Fallback möglichst immer vorhanden sein. Seit Java 9 werden ResourceBundles-Properties standardmäßig mit UTF-8 decodiert, wodurch die unleserlichen Escape-Sequenzen entfallen können. Sollten beim Dekodieren Probleme auftreten, wird es mit ISO 8859-1 automatisch erneut versucht.&lt;ref&gt;{{Internetquelle |url=https://openjdk.java.net/jeps/226 |titel=JEP 226: UTF-8 Property Resource Bundles |abruf=2020-06-22}}&lt;/ref&gt;</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Einzelnachweise ==</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Einzelnachweise ==</div></td> </tr> </table> Till.niermann