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.


Constructor Index

 o LogFile(String, Applet)
Get the file from applets.
 o LogFile(String, char)
Opens a log file for reading or writting.

Method Index

 o getReader()
Get the reading part of the file, if opened for reading.
 o getWriter()
Get the writing part of the file, if opened for writing.

Constructors

 o 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.
 o LogFile
 public LogFile(String name,
                Applet applet)
Get the file from applets.

Parameters:
name - the filename.
applet - the applet that has file.

Methods

 o getReader
 public BufferedReader getReader()
Get the reading part of the file, if opened for reading.

Returns:
The reading part of the file.
 o 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