Support java.io.File#lastModified not only on Windows

There was already non-Windows support, but it was put into the
Windows-specific part. Move it outside.

While at it, change the left-over 'st' to 'fileStat' to fix the
compilation.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Make sure to test java.io.File#lastModified

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge pull request #81 from dscho/last-modified

Fix unsatisfied link error when calling java.io.File#lastModified on non-Windows
fix memory leak in Java_java_io_File_lastModified (exposed in debug mode)
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>
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>
Add java.util.Arrays#toString(long[])

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>
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 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>
Add minimal implementations of ParseException / ParsePosition

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 write support for RandomAccessFile

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>
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>