|
Cramfull Compiled Resources v2.00 | |||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||
See:
Description
| Packages | |
| be.arci.cramfull | The Cramfull Compiled Resources library enables to distribute resources for Java applications in compiled form, with internationalization support. |
| be.arci.pub | Supplies some example implementations and utilities for the Cramfull Compiled Resources library, together with their source code. |
Resources include icons, cursors, text, menus, dialog boxes, audio clips, animation clips, etc. Resource are also commonly used to separate national language data from the program logic, so that different languages can be plugged in by supplying the appropriate resource. It is obvious that in today's advanced multimedia user interfaces, resources are vital portions of attractive applications.
To complicate matters further, Java applications are often distributes in zip-files, compressed or uncompressed, or in jar files. Resources can be packaged in these archives together with the application, or kept apart on the (server) file system for not having to load all language resources at once, when only one is needed. Also several Java Virtual Machines have limited support for one or more of these archive types.
The Cramfull Compiled Resources library offers a standard way of packaging, distributing and accessing resources that works in all environments. Therefor there is only one decision left to make about how to distribute your resources: use Cramfull!
The Cramfull Compiled Resources library improves on the concept of a Java resource class. A Java resource class is an ordinary Java class containing encapsulated resources like properties files, images, sounds, menus, etc. Java resource classes have several valuable attributes to a Java programmer. In particular, a Java resource class can be used for internationalizing Java based programs, allowing application independent interchange of strings, sounds and images. Java resource classes can also be loaded by opening just 1 URLConnection, dramatically improving the performance of loading many small static resources.
We suggest you read the following first:
All other classes are either supporting classes you need not interface with, or advanced API's for special uses.
| evaluation version | production version |
|---|---|
| Encoded resources are always compiled into the Cramfull subclass itself, and thus stay in memory as long as the Cramfull subclass is loaded. | Encoded resources can be placed in a nested class, that can be garbage collected as soon as the Cramfull subclass is initialized. |
| No single resource can be larger than about 285 kBytes original filesize (depending on the nature of the data and the encoding that is used). | There is only a physical limit imposed by the class file format: the combined original file size of all resources compiled into a class cannot exceed circa 1.790 MByte; there is no individual file size limit. |
| A Cramfull class cannot contain more than about 100 resources. | There is only a physical limit, imposed by the class-file format. We have successfully compiled sets of more than 10.000 resources. |
| The Cramfull class can manage some 500 resources during 1 JVM session in total. | There is no such restriction. |
|
Cramfull Compiled Resources v2.00 | |||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||