4 <title>Svjatoslav Commons - Java library of commonly used functions</title>
5 <!-- 2019-01-19 Sat 01:27 -->
7 <meta name="viewport" content="width=device-width, initial-scale=1">
8 <meta name="generator" content="Org-mode">
9 <meta name="author" content="Svjatoslav Agejenko">
10 <link href="https://bootswatch.com/4/darkly/bootstrap.min.css" rel="stylesheet">
11 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
12 <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script>"
13 <style type="text/css">
14 footer {background-color: #111 !important;}
15 pre {background-color: #111; color: #ccc;}
17 <style type="text/css">
18 /* org mode styles on top of twbs */
35 background-color: #f5f5f5;
62 display: inline-block;
74 .bs-docs-sidebar.affix {
77 @media (min-width: 768px) {
83 /* All levels of nav */
84 .bs-docs-sidebar .nav > li > a {
91 .bs-docs-sidebar .nav > li > a:hover,
92 .bs-docs-sidebar .nav > li > a:focus {
95 text-decoration: none;
96 background-color: transparent;
97 border-left: 1px solid #A1283B;
99 .bs-docs-sidebar .nav > .active > a,
100 .bs-docs-sidebar .nav > .active:hover > a,
101 .bs-docs-sidebar .nav > .active:focus > a {
105 background-color: transparent;
106 border-left: 2px solid #A1283B;
109 /* Nav: second level (shown on .active) */
110 .bs-docs-sidebar .nav .nav {
111 display: none; /* Hide by default, but at >768px, show it */
112 padding-bottom: 10px;
114 .bs-docs-sidebar .nav .nav > li > a {
121 .bs-docs-sidebar .nav .nav > li > a:hover,
122 .bs-docs-sidebar .nav .nav > li > a:focus {
125 .bs-docs-sidebar .nav .nav > .active > a,
126 .bs-docs-sidebar .nav .nav > .active:hover > a,
127 .bs-docs-sidebar .nav .nav > .active:focus > a {
132 /* Nav: third level (shown on .active) */
133 .bs-docs-sidebar .nav .nav .nav {
134 padding-bottom: 10px;
136 .bs-docs-sidebar .nav .nav .nav > li > a {
143 .bs-docs-sidebar .nav .nav .nav > li > a:hover,
144 .bs-docs-sidebar .nav .nav .nav > li > a:focus {
147 .bs-docs-sidebar .nav .nav .nav > .active > a,
148 .bs-docs-sidebar .nav .nav .nav > .active:hover > a,
149 .bs-docs-sidebar .nav .nav .nav > .active:focus > a {
154 /* Show and affix the side nav when space allows it */
155 @media (min-width: 992px) {
156 .bs-docs-sidebar .nav > .active > ul {
159 /* Widen the fixed sidebar */
160 .bs-docs-sidebar.affix,
161 .bs-docs-sidebar.affix-bottom {
164 .bs-docs-sidebar.affix {
165 position: fixed; /* Undo the static from mobile first approach */
168 .bs-docs-sidebar.affix-bottom {
169 position: absolute; /* Undo the static from mobile first approach */
171 .bs-docs-sidebar.affix .bs-docs-sidenav,.bs-docs-sidebar.affix-bottom .bs-docs-sidenav {
176 @media (min-width: 1200px) {
177 /* Widen the fixed sidebar again */
178 .bs-docs-sidebar.affix-bottom,
179 .bs-docs-sidebar.affix {
184 <script type="text/javascript">
188 $('.bs-docs-sidebar li').first().addClass('active');
190 $(document.body).scrollspy({target: '.bs-docs-sidebar'});
192 $('.bs-docs-sidebar').affix();
197 <div id="content" class="container">
198 <div class="row"><div class="col-md-9"><h1 class="title">Svjatoslav Commons - Java library of commonly used functions</h1>
201 <li><a href="https://www2.svjatoslav.eu/gitweb/?p=svjatoslav_commons.git;a=snapshot;h=HEAD;sf=tgz">download latest snapshot</a>
204 <li>This program is free software; you can redistribute it and/or modify
205 it under the terms of version 3 of the <a href="https://www.gnu.org/licenses/lgpl.html">GNU Lesser General Public
206 License</a> or later as published by the Free Software Foundation.
211 <li>Svjatoslav Agejenko
213 <li>Homepage: <a href="https://svjatoslav.eu">https://svjatoslav.eu</a>
215 <li>Email: <a href="mailto://svjatoslav@svjatoslav.eu">mailto://svjatoslav@svjatoslav.eu</a>
220 <li><a href="http://www.svjatoslav.eu/programs.jsp">other applications hosted at svjatoslav.eu</a>
224 <div id="outline-container-sec-1" class="outline-2">
225 <h2 id="sec-1"><span class="section-number-2">1</span> Library contents</h2>
226 <div class="outline-text-2" id="text-1">
228 <li>Commandline Interface helper
229 <pre class="example">
230 eu.svjatoslav.commons.commandline.CLIHelper
235 <li>Commandline arguments parser and validator.
236 <pre class="example">
237 eu.svjatoslav.commons.commandline.parameterparser
242 <li>Bit input and output streams.
243 <pre class="example">
244 eu.svjatoslav.commons.data.BitInputStream
245 eu.svjatoslav.commons.data.BitOutputStream
250 <li>Slightly enhanced data input and output streams.
251 <pre class="example">
252 eu.svjatoslav.commons.data.EnhancedDataInputStream
253 eu.svjatoslav.commons.data.EnhancedDataOutputStream
258 <li>Byte array to HEX string converter.
259 <pre class="example">
260 eu.svjatoslav.commons.data.HexConverter
265 <li>Utility that tries to quess user desktop directory. (Quite ugly and
266 unreliable. Better solution is needed.)
267 <pre class="example">
268 eu.svjatoslav.commons.file.CommonPathResolver
273 <li>File path parser.
274 <pre class="example">
275 eu.svjatoslav.commons.file.FilePathParser
281 <pre class="example">
282 eu.svjatoslav.commons.file.IOHelper
287 <li>Graphical error dialog.
289 <li>Reusable graphical dialog to capture and show program exceptions
290 and associated program call stack traceback.
291 <pre class="example">
292 eu.svjatoslav.commons.gui.dialog.ExceptionDialog
299 <li>Primitive and simple component to add navigation menus to the web
301 <pre class="example">
302 eu.svjatoslav.commons.network.navigation
307 <li>String tokenizer.
308 <pre class="example">
309 eu.svjatoslav.commons.string.tokenizer
314 <li>Improved String, optimized for dealing with prefixes and suffixes.
315 <pre class="example">
316 eu.svjatoslav.commons.string.String2
321 <li>Wildcards matcher. (?, *)
322 <pre class="example">
323 eu.svjatoslav.commons.string.WildCardMatcher#match
331 <div id="outline-container-sec-2" class="outline-2">
332 <h2 id="sec-2"><span class="section-number-2">2</span> Usage</h2>
333 <div class="outline-text-2" id="text-2">
335 Instructions to embed svjatoslav-commons in your project as a library:
339 Maven pom.xml file snippet:
342 <div class="org-src-container">
344 <pre class="src src-xml"><dependencies>
347 <groupId>eu.svjatoslav</groupId>
348 <artifactId>svjatoslavcommons</artifactId>
349 <version>1.7</version>
352 </dependencies>
358 <id>svjatoslav.eu</id>
359 <name>Svjatoslav repository</name>
360 <url>http://www2.svjatoslav.eu/maven/</url>
363 </repositories>
368 </div><div class="col-md-3"><nav id="table-of-contents">
369 <div id="text-table-of-contents" class="bs-docs-sidebar">
371 <li><a href="#sec-1">1. Library contents</a></li>
372 <li><a href="#sec-2">2. Usage</a></li>
377 <footer id="postamble" class="">
378 <div><p class="author">Author: Svjatoslav Agejenko</p>
379 <p class="date">Created: 2019-01-19 Sat 01:27</p>
380 <p class="creator"><a href="http://www.gnu.org/software/emacs/">Emacs</a> 26.1 (<a href="http://orgmode.org">Org-mode</a> 9.1.9)</p>