Editing Commons.unkrig.de
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<meta name="keywords" content="versatile, library, java, commons"></meta> | <meta name="keywords" content="versatile, library, java, commons"></meta> | ||
<meta name="description" content="A versatile library that implements many useful container and utility classes"></meta> | <meta name="description" content="A versatile library that implements many useful container and utility classes"></meta> | ||
<tt>de.unkrig.commons</tt> is a versatile Java™ library that implements many useful container and utility classes | <tt>de.unkrig.commons</tt> is a versatile Java™ library that implements many useful container and utility classes | ||
== Overview == | == Overview == | ||
Line 15: | Line 14: | ||
''Resources:'' | ''Resources:'' | ||
[http://commons.unkrig.de/commons-asm | [http://commons.unkrig.de/javadoc/commons-asm/index.html JAVADOC], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-asm&v=LATEST&e=jar JAR file Download], | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-asm&v=LATEST&e=jar JAR file Download], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-asm&v=LATEST&e=pom Maven POM] | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-asm&v=LATEST&e=pom Maven POM] | ||
Line 33: | Line 21: | ||
Functionality for | Functionality for | ||
[http://commons.unkrig.de/commons-file | [http://commons.unkrig.de/javadoc/commons-file/index.html?de/unkrig/commons/file/fileprocessing/package-summary.html processing] | ||
or | or | ||
[http://commons.unkrig.de/commons-file | [http://commons.unkrig.de/javadoc/commons-file/index.html?de/unkrig/commons/file/filetransformation/package-summary.html transforming] | ||
trees of directories, files, compressed and archive files, and even nested compressed and archive files. Supports more than a dozen compression and archive formats. | trees of directories, files, compressed and archive files, and even nested compressed and archive files. Supports more than a dozen compression and archive formats. | ||
''Resources:'' | ''Resources:'' | ||
[http://commons.unkrig.de/commons-file | [http://commons.unkrig.de/javadoc/commons-file/index.html JAVADOC], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-file&v=LATEST&e=jar JAR file Download], | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-file&v=LATEST&e=jar JAR file Download], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-file&v=LATEST&e=pom Maven POM] | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-file&v=LATEST&e=pom Maven POM] | ||
=== commons-io === | === commons-io === | ||
Functionality around byte streams and readers/writers, e.g. for converting a byte stream into a hex dump, or formatting an XML document | Functionality around byte streams and readers/writers, e.g. for converting a byte stream into a hex dump, or formatting an XML document | ||
''Resources:'' | ''Resources:'' | ||
[http://commons.unkrig.de/commons-io | [http://commons.unkrig.de/javadoc/commons-io/index.html JAVADOC], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-io&v=LATEST&e=jar JAR file Download], | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-io&v=LATEST&e=jar JAR file Download], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-io&v=LATEST&e=pom Maven POM] | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-io&v=LATEST&e=pom Maven POM] | ||
=== commons-lang === | === commons-lang === | ||
* Utility classes for [http://commons.unkrig.de/commons-lang | * Utility classes for [http://commons.unkrig.de/javadoc/commons-lang/index.html?de/unkrig/commons/lang/ExceptionUtil.html exceptions], [http://commons.unkrig.de/javadoc/commons-lang/index.html?de/unkrig/commons/lang/ThreadUtil.html threads] and [http://commons.unkrig.de/javadoc/commons-lang/index.html?de/unkrig/commons/lang/RunnableUtil.html runnables] | ||
* [http://commons.unkrig.de/commons-lang | * [http://commons.unkrig.de/javadoc/commons-lang/index.html?de/unkrig/commons/lang/protocol/package-summary.html "Protocol" interfaces] like [http://commons.unkrig.de/javadoc/commons-lang/index.html?de/unkrig/commons/lang/protocol/Producer.html Producer], [http://commons.unkrig.de/javadoc/commons-lang/index.html?de/unkrig/commons/lang/protocol/Consumer.html Consumer], [http://commons.unkrig.de/javadoc/commons-lang/index.html?de/unkrig/commons/lang/protocol/Predicate.html Predicate], [http://commons.unkrig.de/javadoc/commons-lang/index.html?de/unkrig/commons/lang/protocol/Transformer.html Transformer] | ||
''Resources:'' | ''Resources:'' | ||
[http://commons.unkrig.de/commons-lang | [http://commons.unkrig.de/javadoc/commons-lang/index.html JAVADOC], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-lang&v=LATEST&e=jar JAR file Download], | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-lang&v=LATEST&e=jar JAR file Download], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-lang&v=LATEST&e=pom Maven POM] | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-lang&v=LATEST&e=pom Maven POM] | ||
=== commons-math === | === commons-math === | ||
[http://commons.unkrig.de/ | [http://commons.unkrig.de/javadoc/index.html?de/unkrig/commons/math/package-summary.html de.unkrig.commons.math]: A linear congruential generator; a [http://commons.unkrig.de/javadoc/index.html?de/unkrig/commons/math/Sequences.html random sequence generator] | ||
''Resources:'' | ''Resources:'' | ||
[http://commons.unkrig.de/commons-math | [http://commons.unkrig.de/javadoc/commons-math/index.html JAVADOC], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-math&v=LATEST&e=jar JAR file Download], | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-math&v=LATEST&e=jar JAR file Download], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-math&v=LATEST&e=pom Maven POM] | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-math&v=LATEST&e=pom Maven POM] | ||
=== commons-net === | === commons-net === | ||
* [http://commons.unkrig.de/commons-net | * [http://commons.unkrig.de/javadoc/commons-net/index.html?de/unkrig/commons/net/http/package-summary.html HTTP] and [http://commons.unkrig.de/javadoc/commons-net/index.html?de/unkrig/commons/net/ftp/package-summary.html FTP] servers and clients | ||
* Various networking tools like [http://commons.unkrig.de/commons-net | * Various networking tools like [http://commons.unkrig.de/javadoc/commons-net/index.html?de/unkrig/commons/net/tool/tcpmon/package-summary.html TCPMON], [http://commons.unkrig.de/javadoc/commons-net/index.html?de/unkrig/commons/net/tool/ftpmon/package-summary.html FTPMON], [http://commons.unkrig.de/javadoc/commons-net/index.html?de/unkrig/commons/net/tool/telnet/package-summary.html TELNET] | ||
''Resources:'' | ''Resources:'' | ||
[http://commons.unkrig.de/commons-net | [http://commons.unkrig.de/javadoc/commons-net/index.html JAVADOC], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-net&v=LATEST&e=jar JAR file Download], | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-net&v=LATEST&e=jar JAR file Download], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-net&v=LATEST&e=pom Maven POM] | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-net&v=LATEST&e=pom Maven POM] | ||
=== commons-reflect === | === commons-reflect === | ||
Various utilities for Java's reflection API | Various utilities for Java's reflection API | ||
''Resources:'' | ''Resources:'' | ||
[http://commons.unkrig.de/commons-reflect | [http://commons.unkrig.de/javadoc/commons-reflect/index.html JAVADOC], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-reflect&v=LATEST&e=jar JAR file Download], | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-reflect&v=LATEST&e=jar JAR file Download], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-reflect&v=LATEST&e=pom Maven POM] | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-reflect&v=LATEST&e=pom Maven POM] | ||
=== commons-text === | === commons-text === | ||
* An [http://commons.unkrig.de/commons-text | * An [http://commons.unkrig.de/javadoc/commons-text/index.html?de/unkrig/commons/text/expression/ExpressionEvaluator.html expression evaluator] | ||
* A small framework for creating [http://commons.unkrig.de/commons-text | * A small framework for creating [http://commons.unkrig.de/javadoc/commons-text/index.html?de/unkrig/commons/text/scanner/package-summary.html scanners] and [http://commons.unkrig.de/javadoc/commons-text/index.html?de/unkrig/commons/text/parser/package-summary.html parsers] | ||
* A [http://commons.unkrig.de/commons-text | * A [http://commons.unkrig.de/javadoc/commons-text/index.html?de/unkrig/commons/text/pattern/Glob.html Glob] class that combines the widely known elements of UNIX file name globbing with the power of regular expressions | ||
''Resources:'' | ''Resources:'' | ||
[http://commons.unkrig.de/commons-text | [http://commons.unkrig.de/javadoc/commons-text/index.html JAVADOC], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-text&v=LATEST&e=jar JAR file Download], | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-text&v=LATEST&e=jar JAR file Download], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-text&v=LATEST&e=pom Maven POM] | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-text&v=LATEST&e=pom Maven POM] | ||
=== commons-util === | === commons-util === | ||
* [http://commons.unkrig.de/commons-util | * [http://commons.unkrig.de/javadoc/commons-util/index.html?de/unkrig/commons/util/CommandLineOptions.html CommandLineOptions] makes parsing and documentation of command line options (e.g. for "<code>public static void main(String[])</code>") easy; see the [[CommandLineOptions tutorial|tutorial]]. | ||
* [http://commons.unkrig.de/commons-util | * [http://commons.unkrig.de/javadoc/commons-util/index.html?de/unkrig/commons/util/TimeTable.html TimeTable] parses and implements a CRON-like specification string | ||
* Various [http://commons.unkrig.de/commons-util | * Various [http://commons.unkrig.de/javadoc/commons-util/index.html?de/unkrig/commons/util/logging/filter/package-summary.html filters], [http://commons.unkrig.de/javadoc/commons-util/index.html?de/unkrig/commons/util/logging/handler/package-summary.html handlers] and [http://commons.unkrig.de/javadoc/commons-util/index.html?de/unkrig/commons/util/logging/formatter/package-summary.html formatters] for <tt>java.util.logging</tt> | ||
* The [http://commons.unkrig.de/commons-util | * The [http://commons.unkrig.de/javadoc/commons-util/index.html?de/unkrig/commons/util/logging/SimpleLogging.html SimpleLogging] facility for easy integration of <tt>java.util.logging</tt> within command line tools | ||
''Resources:'' | ''Resources:'' | ||
[http://commons.unkrig.de/commons-util | [http://commons.unkrig.de/javadoc/commons-util/index.html JAVADOC], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-util&v=LATEST&e=jar JAR file Download], | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-util&v=LATEST&e=jar JAR file Download], | ||
[http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-util&v=LATEST&e=pom Maven POM] | [http://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.unkrig.commons&a=commons-util&v=LATEST&e=pom Maven POM] | ||
== Source Code == | == Source Code == | ||
The source code is available through | The source code is available through SVN: | ||
https:// | https://svn.code.sf.net/p/loggifier/code/de.unkrig.commons/ | ||
== License == | == License == | ||
Line 153: | Line 113: | ||
== Change Log == | == Change Log == | ||
=== Version 1.2.1, 2016-10-30: === | |||
* Removed the nasty circular dependencies around "commons-junit". | |||
=== Version 1.2.0, 2016-10-24: === | |||
* Replaced the old ANT build with MAVEN. | |||
=== Version 1.1.12, 2016-10-14: === | |||
* Bug fixes in "ProducerUtil.cache()". | |||
=== Version 1.1.11, 2016-08-13: === | |||
* ProducerUtil.cache...(): The "invalidationCondition" was treated the wrong way around in some places. Pulled things straigt. | |||
* PredicateUtil: Added method "static synchronizedPredicate(Predicate)". | |||
=== Version 1.1.10, 2016-08-12: === | |||
* ProducerUtil.cache(): When the first call of "delegate.produce()" threw an exception, then the NEXT invocation returned NULL (instead of calling "delegate.produce()" again). | |||
* ProducerUtil: Added "cacheAsynchronously()" and "atMostEvery(ms, firstProduct, startAtTrueProduct)". | |||
=== Version 1.1.9, 2016-08-02: === | |||
* Fixed the bounds of of the parameters of some "MapUtil()" methods, to make them more versatile. | |||
=== Version 1.1.8, 2016-07-26: === | |||
* Moved various map-related methods from "CollectionUtil" to "MapUtil" (where they actually belong), marked the original methods with "@Deprecated" and replaced them with invocations of the "new" methods. | |||
* Moved a few more fields and methods from "CollectionUtil" to "IterableUtil" and "IteratorUtil", where they belong. | |||
* Added many missing bounds to method parameters to make the methods more flexible. | |||
=== Version 1.1.7, 2016-06-17: === | |||
* Added "ObjectUtil.hashCode()". | |||
* Added "PredicateUtil.always(boolean)". | |||
* Added "PredicateUtil.xor()". | |||
* "Predicate<T>" now extends "PredicateWhichThrows<T, RuntimeException>". | |||
* Added "ProducerUtil.cache(delegate, condition)". | |||
* "commons/doclet": Added support for the inline tags "{@docRoot}", "{@literal}", "{@constantsof}" and "{@constantsofplain}". | |||
* CommandLineOptions: Initial support for "option cardinality" and "option group cardinality". | |||
* Added "de.unkrig.commons.util.Enums". | |||
* Added the "IdentityHashSet". | |||
* Added methods "Pipe.read(byte[])" and "Pipe.write(byte[])". | |||
* Changed type parameter "EX" of "(Consumer|Function|Predicate|Producer|Runnable|Transformer)WhichThrows" interfaces from "extends Exception" to "extends Throwable" to allow for seamless handlich of the "Longjump" throwable. | |||
* Added a static "ignoreExceptions()" method to the "(Consumer|Function|Predicate|Producer|Runnable|Transformer)Util" classes. | |||
* Longjump: Added various "catchLongjump()" methods for easy integration with Java 8 lambdas. | |||
* Added the following methods: | |||
** IoUtil.copy(File, File, CollisionStrategy) | |||
** IoUtil.copyTree(File, File, CollisionStrategy) | |||
** IoUtil.isContentIdentical(File, File) | |||
=== Version 1.1.6, 2016-03-21: === | |||
* Added "ObjectUtil.almostNull()". | |||
=== Version 1.1.5, 2016-03-14: === | |||
* de.unkrig.commons.io.IoUtil: Added "skip()" and "skipAll()". | |||
* de.unkrig.commons.text.PatternUtil: Replaced the "Replacer" interface with a "Function<Matcher, String>". | |||
* de.unkrig.commons.file.ExceptionHandler: Handler methods now have, for consistency with the other APIs, an additional parameter "String path". | |||
* de.unkrig.commons.net: TcpServer(SSLContext): Remove several "cipher suites" from the SSL context because otherwise some modern browsers refuse to connect with this server. | |||
=== Version 1.1.4, 2015-11-11: === | |||
* de.unkrig.commons.text: JavaScanner/JsonScanner: The CXX_COMMENT now INCLUDES the trailing line break. | |||
* de.unkrig.commons.net: Added Utility class "UrlConnections", with the single method "followRedirects2()". | |||
* de.unkrig.commons.text: Replaced "CamelCase" with the more versatile "Notations" helper class. | |||
* de.unkrig.util.collections: Added the "Stack" interface and its implementation "ArrayStack". | |||
* de.unkrig.commons.lang: Added the "FunctionWhichThrows" interface and the "Functions" utility class. | |||
=== Version 1.1.3, 2015-09-19: === | |||
* de.unkrig.commons.doclet: Removed the concept of generating MEDIAWIKI markup - MEDIAWIKI is for COLLABORATION, not for documentation. | |||
* Added "de.unkrig.commons.util.CommandLineOptions" for elegant command line processing. | |||
* Added "de.unkrig.commons.util.concurrent.ByteStreamSequentializer" and "ObjectSequentializer". | |||
=== Version 1.1.2, 2015-08-31: === | |||
* Added optional dependencies on 'xz' and APACHE COMPRESS. | |||
* Added "de.unkrig.commons.doclet". | |||
* Added "de.unkrig.commons.text.xml". | |||
* Added "de.unkrig.commons.util.collections.IteratorUtil". | |||
* Various bug fixes in de.unkrig.commons.file | |||
* Added "de.unkrig.commons.file.contentstransformation.TextTransformer". | |||
* "de.unkrig.commons.file.fileprocessing" now supports parallel execution. | |||
* The "JavaScanner" now decodes unicode escapes - strictly speaking: wrong, but very useful in some situations. | |||
=== Version 1.1.1, 2015-02-24: === | |||
* Gave up on Java 5 compatibility; Java >= 6 is now required. | |||
* UPDATE no longer takes two separate paramaters 'glob' and 'update-file', but one parameter 'glob=update-file', which makes it possible to use variable references when creating the 'update-file' name. | |||
* Push releases to OSSRH and eventually to MAVEN CENTRAL | |||
=== Version 1.1.0, 2015-02-04: === | |||
* Major refactoring of 'de.unkrig.commons.file.fileprocessing' and 'de.unkrig.commons.file.contentsprocessing'. | |||
* de.unkrig.commons.file.filetransformation: Thanks to apache.commons.compress, we now not only support the ZIP archive format and the GZIP compression algorithm, but also the AR, ARJ, CPIO, DUMP, JAR, TAR and SEVEN_Z archive formats and the BZIP2, PACK200, XZ, LZMA, SNAPPY and Z compression algorithms. | |||
* Added 'de.unkrig.commons.lang.security.Sandbox'. | |||
=== Version 1.0.5, 2014-05-01: === | |||
* Moved the <log>, <logging> and <simpleLogging> tasks from 'de.unkrig.commons.util' to 'de.unkrig.antcontrib'. | |||
=== Version 1.0.4, 2014-04-29: === | |||
* 'keepOriginals' did not work for in-place file transformations. | |||
* <simplelogging>: Added attribute 'spec="..."'. | |||
* <simpleLogging>: Attribute 'debug="..."' no longer is boolean, but "FINE|FINER|FINEST". | |||
* <logging>: Removed attribute 'parent="..."' | |||
* <logging>: Added attribute 'clearFilter="true"'. | |||
* Renamed task <simplelogging> to <simpleLogging> (with a big 'L'). | |||
=== Versions 1.0.3 and earlier: === | |||
No change log available. |