gnu.mapping

Class LogWriter


public class LogWriter
extends FilterWriter

A class that supports an optional log file that output is duplicated to. This is used to implement the Scheme transcript facility.

Constructor Summary

LogWriter(Writer out)

Method Summary

void
close()
void
closeLogFile()
void
echo(buf[] , int off, int len)
void
flush()
Writer
getLogFile()
void
setLogFile(String name)
void
setLogFile(Writer log)
void
write(String str, int off, int len)
void
write(buf[] , int off, int len)
void
write(int c)

Constructor Details

LogWriter

public LogWriter(Writer out)

Method Details

close

public void close()
            throws java.io.IOException

closeLogFile

public void closeLogFile()
            throws java.io.IOException

echo

public void echo(buf[] ,
                 int off,
                 int len)
            throws java.io.IOException

flush

public void flush()
            throws java.io.IOException

getLogFile

public final Writer getLogFile()

setLogFile

public void setLogFile(String name)
            throws java.io.IOException

setLogFile

public void setLogFile(Writer log)

write

public void write(String str,
                  int off,
                  int len)
            throws java.io.IOException

write

public void write(buf[] ,
                  int off,
                  int len)
            throws java.io.IOException

write

public void write(int c)
            throws java.io.IOException