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
-
FileManipulationObject()
- FileManipulationObject constructor does nothing.
-
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.
-
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.
FileManipulationObject
public FileManipulationObject()
- FileManipulationObject constructor does nothing.
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
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