Reducing installed application footprint with compressed executable jars
Though you can significantly reduce the download size of a Java application by applying Pack200 compression to its jars, the installed app size is still the same, since once downloaded, the jars must be expanded.
Wouldn’t it be nice if we could keep all jars tightly compressed even after installing the application ?
(more…)
Using RandomAccessFile to access data which doesn’t come from a local file.
Some libraries and applications rely on a RandomAccessFile instance to process its IO tasks, and thus are usually limited to access data from a local file.
If an application needs to access data from another source (from an SFTP file, an HTTP file, CIFS-accessible file, a file inside a zip, tar, gzip or bzip2 archive, etc), it has to use another algorithm - the process isn’t transparent.
Such application could be benefited by an adapter class providing a “RandomAccessFile” view of arbitrary data sources, allowing it to transparently access data from different sources.
Example: a database server using a RandomAccessFile instance to access its data from a local file would automatically be able to access it from a gzip-compressed file.
(more…)