Cramfull Compiled Resources v2.00

be.arci.cramfull
Class ASCIIEncoder

java.lang.Object
  |
  +--be.arci.cramfull.Encoder
        |
        +--be.arci.cramfull.ASCIIEncoder

public class ASCIIEncoder
extends Encoder

Default Encoder implementation of the cramfull package.

If you encode resorces using this class, you have to include the ASCIIDecoder class in the distribution of your software.

See Also:
CharEncoder,
ASCIIDecoder
,
Encoder

Field Summary
static java.lang.String sCopy
          Copyright notice; none of the Cramfull Compiled Resources license types allows you to change this.
 
Constructor Summary
ASCIIEncoder()
           
 
Method Summary
 void encode(java.io.DataInput di, int iResourceLength)
          Encodes the resource file into a sequence of char-s; implementations must invoke write(char c) for each encoded char.
 java.lang.String getDecoderClassName()
          The Decoder associated with this Encoder is be.arci.cramfull.ASCIIDecoder
 
Methods inherited from class be.arci.cramfull.Encoder
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sCopy

public static final java.lang.String sCopy
Copyright notice; none of the Cramfull Compiled Resources license types allows you to change this.
Constructor Detail

ASCIIEncoder

public ASCIIEncoder()
Method Detail

encode

public void encode(java.io.DataInput di,
                   int iResourceLength)
            throws java.io.IOException
Description copied from class: Encoder
Encodes the resource file into a sequence of char-s; implementations must invoke write(char c) for each encoded char. The Decoder will read this char sequence in the same order.

Overrides:
encode in class Encoder
Tags copied from class: Encoder
Parameters:
di - a DataInput opened on the resource to encode.
iResourceLength - the number of bytes in the di that must be read and encoded.
See Also:
Decoder,
write(char c)

getDecoderClassName

public java.lang.String getDecoderClassName()
The Decoder associated with this Encoder is be.arci.cramfull.ASCIIDecoder
Overrides:
getDecoderClassName in class Encoder
Returns:
"be.arci.cramfull.ASCIIDecoder"
See Also:
ASCIIDecoder

Cramfull Compiled Resources v2.00