| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.isti.util.LineProcOutputStream
com.isti.util.LogOutputStream
Class LogOutputStream defines an output stream that sends data to a LogFile object. 7/1/2003 -- [HS] Initial version. 7/9/2003 -- [ET] Fixed extra-newline added to each line of output; added 'closeLogFile()' and 'setCloseLogFileFlag()' methods; added overridden 'close()' method.
| Field Summary | |
| protected  boolean | closeLogFileFlagFlag set 'true' to close LogFile when this output stream is closed. | 
| protected  int | logLevelThe logging level to use. | 
| protected  LogFile | outFileThe LogFile object to use. | 
| Fields inherited from class com.isti.util.LineProcOutputStream | 
| EOL, EOL_LEN, lineBuffer | 
| Constructor Summary | |
| LogOutputStream(LogFile logFileObj)Creates an output stream that sends data to a LogFile object. | |
| Method Summary | |
|  void | callBackMethod(java.lang.String s)Implements the CallbackStringParam interface. | 
|  void | close()Overidden version that also flushes any buffered data and closes the LogFile object (if 'closeLogFileFlag' is 'true'). | 
|  void | closeLogFile()Closes the LogFile used by this object. | 
|  LogFile | getLogfile()Returns a reference to the logfile in use. | 
|  void | setCloseLogFileFlag(boolean flgVal)Configures whether or not the 'LogFile' object held by this output stream will be closed when the stream is closed. | 
|  void | setLoggingLevel(int newLevel)Set the logging level used for outputs to the log file. | 
| Methods inherited from class com.isti.util.LineProcOutputStream | 
| flush, write | 
| Methods inherited from class java.io.OutputStream | 
| write, write | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected final LogFile outFile
protected int logLevel
protected boolean closeLogFileFlag
| Constructor Detail | 
public LogOutputStream(LogFile logFileObj)
logFileObj - the LogFile object to use.| Method Detail | 
public void callBackMethod(java.lang.String s)
s - string parameter to use.public LogFile getLogfile()
public void setLoggingLevel(int newLevel)
newLevel - the new logging level.public void setCloseLogFileFlag(boolean flgVal)
flgVal - true to close the 'LogFile' object when this output
 stream is closed; false to not.public void closeLogFile()
public void close()
           throws java.io.IOException
java.io.IOException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||