Example Decoder implementation for resources encoded
by the CharEncoder implementation of Encoder.
Decodes by truncating each char to a byte.
We supply this class as a free service to all users of the
Cramfull Compiled Resources library.
You are allowed to modify this source code, provided you move the class out of
the be.arci package hierarchy.
Decodes a resource from a sequence of char-s. This is the reverse process of the
corresponding Encoder's void encode(DataInput di, int iResourceLength).
Implementations must invoke the method int read() to retrieve the encoded char-s of
iEncodedLength - the length in char-s of the encoded form of the resource
the bytes of the decoded resource, as they were read in by the ClassCompiler
from the original resource file. If a decoding error occurs, the implementing subclass has the
choice of either returning the value null, or throwing a ResourceDecodingException
giving more detailed info on the decoding error.
ResourceDecodingException - if a decoding error occurs and the implementing
subclass wants to give a more detailed message about the decoding error.