Be more verbose when complaining about a non-trivial regex

In particular when constructing regular expressions before compiling them,
it is a good idea to state which exact expression is non-trivial when
complaining about it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Special-case the regular expression '\\'

A single, escaped backslash is actually a very trivial regular expression,
indeed. So let's support it out of the box.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add java.lang.Boolean#parse(String)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add java.lang.Character#isISOControl(char)

... as per the public JavaDoc at

http://docs.oracle.com/javase/6/docs/api/java/lang/Character.html#isISOControl%28char%29

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Complete the java.util.Arrays#toString family of methods

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add java.lang.Double#doubleToLongBits

It is different than #doubleToRawLongBits only when the input value
is not a number.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add the DataInput / DataOutput interfaces

These are part of the standard Java class library API.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add a minimal implementation of DataOutputStream

This implements all the methods required by the DataOutput interface; to
run Bio-Formats' bfconvert tool, actually only the write() and writeByte()
methods would be required.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
RandomAccessFile: support opening for read/write

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add the RandomAccessFile(File file, String mode) constructor

As per the Java API.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add write support for RandomAccessFile

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ByteBuffer: add missing order() methods

Avian's ByteBuffer implementation is actually fixed to big endian. So
let's throw an exception if the user tries to change that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add the BufferUnderflowException

Pre-compiled code might expect the class to exist...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add the FileChannel class

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Implement a rudimentary RandomAccessFile#getChannel

This implementation is by no means intended to be complete, just enough to
support running http://http://loci.wisc.edu/software/bio-formats's
loci.formats.tools.ImageConverter tool.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Implement Calendar#getTime

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add minimal implementations of ParseException / ParsePosition

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Implement a minimal SimpleDateFormat

For the moment, this class can only handle dates of the form
"yyyy-MM-dd'T'HH:mm:ss".

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Test date parsing/formatting

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add dummy AWT classes

... as required by Bio-Formats' bfconvert. These classes are not used, just loaded, therefore their absence would crash bfconvert.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>