Purpose: Constructor
try{
fileName = new FileInputStream(inFile);
//Creates an instance of the class BufferedInputStream
//named bufferedInput
//bufferedInput receives the stream from the fileInputStream
//fileName ad it is read
bufferedInput = new BufferedInputStream(fileName);
dataIn = new DataInputStream(bufferedInput);
writeOut = new FileOutputStream(outFile);
dataWrite = new DataOutputStream(writeOut);
}
catch(FileNotFoundException e){
System.out.println("File Not Found");
return;
}
catch(Throwable e) {
System.out.println("Error in opening file");
return;
}