Commit Graph

50 Commits

Author SHA1 Message Date
Robert von Burg f176960ba9 [New] added ObjectFilter.getAll() further informations
added ObjectFilter.getAll(Class, String) and
ObjectFilter.getAll(Class<V> clazz)
2013-10-20 00:17:20 +02:00
Robert von Burg 200f2081ec [New] added a new ClassHelper utility class 2013-10-08 22:02:42 +02:00
Robert von Burg 601692d3d9 [New] added further constants to StringHelper 2013-10-08 19:57:40 +02:00
Robert von Burg 41a7198cdd [New] added newline constant to StringHelper 2013-10-08 18:57:27 +02:00
Robert von Burg b7a4762a05 [Minor] Made Base encoding/decoding performance tests configurable
To enable them, set the system property
ch.eitchnet.utils.test.runPerfTests=true
2013-09-21 10:03:27 +02:00
Robert von Burg a5ffe0a6cc [Project] moved some project details to parent ch.eitchnet.parent
This simplifies project setup and maintenance
2013-09-21 09:11:40 +02:00
Robert von Burg daf34735ae [Project] changed Java version frm 1.6 to 1.7 in pom.xml 2013-09-16 07:46:57 +02:00
Robert von Burg e6f8343af7 [Minor] fixed compiler warnings 2013-09-15 21:45:40 +02:00
Robert von Burg c9cbb53475 [Minor] changed map declaration to be its interface 2013-09-15 21:44:50 +02:00
Robert von Burg 759eb036b5 Merge branch 'master' of git@github.com:eitch/ch.eitchnet.utils.git 2013-08-30 09:47:39 +02:00
Robert von Burg 209a220331 [Major] Moved property helper methods to PropertiesHelper
Moved the property helper methods from SystemHelper to a new class
PropertiesHelper and added methods where one can pass in the actual
properties thus not being restricted to the system properties
2013-08-20 18:46:46 +02:00
Robert von Burg 1c07555448 [Minor] small code cleanup
added default constructor, instead of instantiating instance variables
at declaration
2013-08-20 18:45:18 +02:00
U-PX\rvb 984ae06df6 [Project] modified pom.xml to also generate javadocs and also deploy those to nexus 2013-08-20 09:06:55 +02:00
Robert von Burg 1430c9217b Fixed remaining failing tests by implementing the replacing of objects
in the filter as required
2013-08-12 11:54:57 +02:00
U-PX\rvb 6fe7cce9fe Merge branch 'master' of github.com:eitch/ch.eitchnet.utils 2013-08-12 11:10:51 +02:00
Robert von Burg f53c20d515 extended XmlHelper to take InputStream and always use \n as line sep 2013-08-12 11:02:02 +02:00
Robert von Burg 4263f46934 [Major] Refactoring the ObjectFilter to no longer rely on an interface
Now the objects put into the cache no longer need to implement an
interface, this makes it easier to adopt the filter in different
scenarios.

Tests written to validate that the filter works as expected. Still some
outstanding tests which currently fail
2013-08-10 00:37:21 +02:00
Robert von Burg 300399e9c0 Merge branch 'master' of git@github.com:eitch/ch.eitchnet.utils.git 2013-08-08 00:01:38 +02:00
Robert von Burg 2bc24c68c8 [New] set new version to 0.2.0-SNAPSHOT 2013-08-08 00:00:47 +02:00
Robert von Burg d2ee280dbe [New] Refactored the ObjectCache to not used a generic T in the class
There was no use and it only made the code unreadable.
2013-08-08 00:00:18 +02:00
Robert von Burg 7700694a84 [New] add new method ArraysHelper.copyOf(byte[]) 2013-04-09 19:25:07 +02:00
Robert von Burg 841fedafdf Update README.md
Added information which classes exist and what they are for.

Added how to build description
2013-03-13 17:13:27 +01:00
Robert von Burg cca9426358 [Minor] changed alphabet of StringHelper.getHexString() to have capital
letters, this corresponds to RFC4648
2013-03-11 22:50:05 +01:00
Robert von Burg a94981e741 [New] Added new methods to FileHelper to read and write byte arrays.
Fixed missing close on existing methods
2013-03-11 21:23:50 +01:00
Robert von Burg e587229914 [New] added new StringHelper.hash*AsHex() methods as a nice API 2013-03-10 23:58:06 +01:00
Robert von Burg 85bab370a5 [Major] Refactored the base encoding
Merged the BaseEncoding and BaseDecoding classes as it seems a better
fit. Added isBaseEncoded methos for checking
2013-03-10 22:09:43 +01:00
Robert von Burg 706d2413ac [New] added tests for the dmedia base32 encoding
Since Jason DeRose now put up some test vectors for the dmedia base32
encoding, i thought it wise to add these in a test
2013-03-01 18:45:59 +01:00
Robert von Burg 5ddb277773 [New] Implemented RFC 4648 Base de/encoding
Both encoding and decoding has been implemented. The specialty of this
implementation is that it is possible to pass in your own alphabet thus
allowing an extension without a re-implementation (again).

As an addition the dbase32 alphabet was added. See
http://docs.novacut.com/dbase32/dbase32.html for usage details
2013-02-24 11:26:44 +01:00
Robert von Burg f04de1e935 Minor code cleanup 2013-02-10 18:38:59 +01:00
Robert von Burg 4d61872094 fixed failing junit tests 2013-02-10 18:38:40 +01:00
Robert von Burg 6f5f03f6af Merge branch 'master' of github.com:eitch/ch.eitchnet.utils 2013-02-09 16:27:11 +01:00
Robert von Burg b36ab20dc3 [New] Added Dmedia Base32 encoding 2013-02-09 16:25:36 +01:00
Robert von Burg 1cf1a16683 [New] Added Base64, Base32 and Base16 encoding 2013-02-09 15:52:25 +01:00
Robert von Burg ca74bf2ae8 [Minor] JavaDoc comments and file headers
fixed some JavaDoc comments and file headers
2013-01-31 18:57:38 +01:00
Robert von Burg a69946d8d4 Update pom.xml
Added distribution management to deploy to nexus.eitchnet.ch (fixed wrong URL)
2013-01-30 15:06:43 +01:00
Robert von Burg 81a76a5fe0 [New] Added XmlHelper 2013-01-20 23:20:36 +01:00
Robert von Burg 5fcea2bb77 [New] added StringHelper.parseBoolean() to check if the string value
passed is either false or true, not allowing other string values.
2013-01-20 23:17:14 +01:00
Robert von Burg 5e56bf28d4 [Minor] Removed dependency to ch.eitchnet.log4j and thus added log4j.xml
The log4j.xml configuration file is in the test resources and now the
project is completely free of a dependency to a concrete logging
implementation as all logging of the sources is done over slf4j
2012-11-25 00:45:47 +01:00
Robert von Burg 3f5bf2d334 [Major] refactored use of log4j to slf4j 2012-11-24 13:22:40 +01:00
Robert von Burg 2fc807fe11 [Minor] cleaned up warnings in code and cleaned up pom.xml 2012-11-19 22:44:07 +01:00
Robert von Burg bb7042524f [New] added new utility method StringHelper.isEmpty() which also checks
for null
2012-11-16 19:42:58 +01:00
Robert von Burg 0d392b1c60 [New] added new formatting functions in StringHelper
- formatNanoDuration(long:nanos):String
- formatMillisecondsDuration(millis:long):String
2012-11-16 09:58:52 +01:00
Robert von Burg 2afba1876c [Major] added methods to SystemHelper and new class ProcessHelper
SystemHelper now has a number of methods to query OS information

ProcessHelper is a helper to execute system calls
2012-07-29 18:27:15 +02:00
Robert von Burg ffc9fa77cd [Minor] change mvn eclipse configuration to load sources as well 2012-07-28 23:16:16 +02:00
Robert von Burg 7dbd5af6a7 [Bugfix] fixed a resource leak where a BufferedReader was not close
In FileHelper.readFileToString() the BufferedReader was not closed. This
has been corrected
2012-07-28 22:50:52 +02:00
Robert von Burg c65fe9c247 [Minor] added eclipse settings path to .gitignore 2012-07-28 15:44:47 +02:00
Robert von Burg 2a3222ba66 [Major] rebuilt project using maven
- Now "mvn compile" will build the project and also download dependencies as needed.
- The ant script does not work anymore
2012-07-28 15:34:37 +02:00
Robert von Burg 97bd5cf5a4 [New] Added packaging information and files and licence
This includes setting the licence to LGPL, setting the headers, adding a build script and testing the build
2012-06-14 23:38:50 +02:00
Robert von Burg 82368adaff [New] Initial commit of the utils
This is initial commit includes
* a RMI handler which can be used for easy up- and downloading of files over RMI
* a FileHelper
* a Log4jConfigurator
* a StringHelper
* a SystemHelper
* a ObjectFilter which is used for caching operations to objects. These objects must implement ITransactionObject
2012-06-08 19:01:28 +02:00
Robert von Burg 7017a8cfa0 Initial commit 2012-06-08 09:46:26 -07:00