Project 3 : Run-Length Decoder Java Applet

Course: Data Compression and Reliability in Multimedia (CIS651)
Programmer: Chaiporn Jaikaeo
Due Date: April 25, 1999
 

PURPOSE

Take an input file which has been compressed by amerRLE_encode (with the extension .ARLE) from the parameter `FileToBeDecompressed'. Then decode the file contents and output the decoded data to a textbox on the screen.  If the input file is not of the correct format, an error message is shown instead.

Example 1

Input file: cis651.txt.ARLE
File type: Banner file
Original file size: 6967 bytes
Compressed file size: 2280 bytes
Output:

Example 2

Input file: HelloWorld.txt.ARLE
File type: Banner file
Original file size: 767 bytes
Compressed file size: 497 bytes
Output:

Example 3

Input file: castle.txt.ARLE
File type: ASCII-Art File
Original file size: 1474 bytes
Compressed file size: 1442 bytes
Output:

NOTE: The above ASCII-art is taken from this ASCII-Art Gallery.

Example 4

Input file: README.ARLE
File type: Plain text file
Original file size: 1236 bytes
Compressed file size: 2470 bytes
Output:

Example 5

Input file: dec2bin.c.ARLE
File type: C Source code
Original file size: 334 bytes
Compressed file size: 565 bytes
Output: