All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bradel.wordchanger.FileManipulationObject

java.lang.Object
   |
   +----bradel.wordchanger.FileManipulationObject

public class FileManipulationObject
extends Object
Manipulates the given file based on the set of excluded files and the lineScanner that is specified. The lineScanner actually determines the behaviour of this program and contains the words not to include. All of the methods in this class are static. Creation date: (30/12/2001 2:42:32 PM)

Author:
: Borys Bradel Copyright (c) 2001 Borys Bradel All rights reserved

Constructor Index

 o FileManipulationObject()
FileManipulationObject constructor does nothing.

Method Index

 o modifyFile(BufferedReader, BufferedWriter, LineScanner)
Reads the appropriate file and for each line calls the appropriate lineScanner function The code is almost identical to readFile but unfortunately Java does not have funciton passing so I have to duplicate all of the code.
 o readFile(BufferedReader, LineScanner)
Reads the appropriate file and for each line calls the appropriate lineScanner function The code is almost identical to readFile but unfortunately Java does not have funciton passing so I have to duplicate all of the code.

Constructors

 o FileManipulationObject
 public FileManipulationObject()
FileManipulationObject constructor does nothing.

Methods

 o modifyFile
 public static void modifyFile(BufferedReader fileBuffer,
                               BufferedWriter outBuffer,
                               LineScanner lineScanner)
Reads the appropriate file and for each line calls the appropriate lineScanner function The code is almost identical to readFile but unfortunately Java does not have funciton passing so I have to duplicate all of the code. Creation date: (30/12/2001 3:26:21 PM)

Parameters:
fileBuffer - java.io.BufferedReader
outBuffer - java.io.BufferedWriter
lineScanner - bradel.wordchanger.LineScanner
 o readFile
 public static void readFile(BufferedReader fileBuffer,
                             LineScanner lineScanner)
Reads the appropriate file and for each line calls the appropriate lineScanner function The code is almost identical to readFile but unfortunately Java does not have funciton passing so I have to duplicate all of the code. Creation date: (30/12/2001 2:44:25 PM)

Parameters:
fileBuffer - java.io.BufferedReader
lineScanner - bradel.wordchanger.LineScanner

All Packages  Class Hierarchy  This Package  Previous  Next  Index