All Packages Class Hierarchy This Package Previous Next Index
Class pinball.log.LogFile
java.lang.Object
|
+----pinball.log.LogFile
- public class LogFile
- extends Object
Opens a log file for reading or writing.
-
filename
- File name of log file.
-
reader
- Input file.
-
writer
- Output file.
-
LogFile(String, char)
- Opens a log file for reading or writting.
-
getReader()
- Get the reading part of the file, if opened for reading.
-
getWriter()
- Get the writing part of the file, if opened for writing.
-
reading()
- Set the log file for reading.
-
writing()
- Set the log file for writing.
filename
private String filename
- File name of log file.
reader
private BufferedReader reader
- Input file.
writer
private DataOutputStream writer
- Output file.
LogFile
public LogFile(String name,
char how) throws IOException
- Opens a log file for reading or writting.
- Parameters:
- name - file name of the log file.
- how - how the file is to be opened. w for write, r for read.
reading
private void reading() throws IOException
- Set the log file for reading.
writing
private void writing() throws IOException
- Set the log file for writing.
getReader
public BufferedReader getReader()
- Get the reading part of the file, if opened for reading.
- Returns:
- The reading part of the file.
getWriter
public DataOutputStream getWriter()
- Get the writing part of the file, if opened for writing.
- Returns:
- The writing part of the file.
All Packages Class Hierarchy This Package Previous Next Index