compress
Class ReadIn

java.lang.Object
  |
  +--compress.ReadIn

class ReadIn
extends java.lang.Object

This class reads in a file and puts the letters and relative frequencies into a vector. It then writes the dictionary to the output file.

Author:
Chad Cook

Field Summary
(package private) static ReadIn Singleton
           
 
Constructor Summary
(package private) ReadIn()
           
 
Method Summary
(package private)  void execute(java.io.FileInputStream fstreamIn, java.io.FileOutputStream fstreamOut, java.util.Vector codeVector)
          This method comprises the entire behavior of the class.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

Singleton

static final ReadIn Singleton
Constructor Detail

ReadIn

ReadIn()
Method Detail

execute

void execute(java.io.FileInputStream fstreamIn,
             java.io.FileOutputStream fstreamOut,
             java.util.Vector codeVector)
This method comprises the entire behavior of the class.
Parameters:
FileInputStream - The input stream from the file to be encoded
FileOutputStream - The output stream for the encoded file
Vector - The vector to be made into a vector of letters and relative frequencies.