Commit Graph

58 Commits

Author SHA1 Message Date
Robert von Burg 9c547af5bb [Major] cleaned up the FileServer/Client implentation
Also renamed it from RMI to FileServer/Client. There is no reason this
has to be RMI bound, as a client must simply implement FileClient where
the upload/download methods can be implemented to be done over any kind
of remote connection
2013-10-31 22:42:38 +01:00
Robert von Burg 5047ad9ff0 [Major] cleaned up FileHelper by using Java 7 auto resource close
- Also cleaned up all compiler warnings.
- Added new method to copy a list of files to a destination
2013-10-31 00:41:50 +01:00
Robert von Burg f35ba7b13c [Minor] cleaned up XmlHelper 2013-10-31 00:06:51 +01:00
Robert von Burg 60e75219bb [Minor] cleaned up .gitignore 2013-10-28 18:56:44 +01:00
Robert von Burg ef256706e4 [Minor] set parent to 0.1.0-SNAPSHOT 2013-10-27 23:06:30 +01:00
Robert von Burg 459a8c096b [Minor] removed dependency to log4j - using slf4j 2013-10-24 21:53:51 +02:00
Robert von Burg 2ccccd6b9e [New] added IS8601 formatting helpers 2013-10-24 21:43:16 +02:00
Robert von Burg 5df4b9edc1 [New] added MathHelper for precision assertions 2013-10-24 21:43:06 +02:00
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