velosurf.util
Class ServletLogWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--velosurf.util.ServletLogWriter

public class ServletLogWriter
extends java.io.Writer

This class implements a writer towards the servlet log


Field Summary
protected  javax.servlet.ServletContext mLog
          the ServletContext object used to log
 
Fields inherited from class java.io.Writer
lock, writeBuffer, writeBufferSize
 
Constructor Summary
ServletLogWriter(javax.servlet.ServletContext log)
          builds a new ServletLogWriter
 
Method Summary
 void close()
          close the writer
 void flush()
          flush any pending output
 void write(char[] cbuf, int off, int len)
          writes an array of chars to the servlet log
 
Methods inherited from class java.io.Writer
write, write, write, write
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

mLog

protected javax.servlet.ServletContext mLog
the ServletContext object used to log
Constructor Detail

ServletLogWriter

public ServletLogWriter(javax.servlet.ServletContext log)
builds a new ServletLogWriter
Parameters:
log - ServletContext
Method Detail

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
writes an array of chars to the servlet log
Overrides:
write in class java.io.Writer
Parameters:
cbuf - characters to write
off - offset in the array
len - number of characters to write
Throws:
java.io.IOException - thrown by underlying servlet logger

flush

public void flush()
           throws java.io.IOException
flush any pending output
Overrides:
flush in class java.io.Writer
Throws:
java.io.IOException - thrown by underlying servlet logger

close

public void close()
           throws java.io.IOException
close the writer
Overrides:
close in class java.io.Writer
Throws:
java.io.IOException - thrown by underlying servlet logger


ooOoo