org.enhydra.xml.xmlc.servlet
Class ServletLogWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--org.enhydra.xml.xmlc.servlet.ServletLogWriter

class ServletLogWriter
extends Writer

Writer that writes to the ServletContext.log() method. Accumulates data until flush is called so that the write is in one line.


Fields inherited from class java.io.Writer
lock
 
Constructor Summary
ServletLogWriter(javax.servlet.ServletContext servletContext)
          Constructor.
 
Method Summary
 void close()
          Close the stream.
 void flush()
          Flush the stream.
 void write(char[] cbuf, int off, int len)
          Write a portion of a character array.
 
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, toString, wait, wait, wait
 

Constructor Detail

ServletLogWriter

public ServletLogWriter(javax.servlet.ServletContext servletContext)
Constructor.
Method Detail

close

public void close()
           throws IOException
Close the stream.
Overrides:
close in class Writer

flush

public void flush()
           throws IOException
Flush the stream.
Overrides:
flush in class Writer

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Write a portion of a character array.
Overrides:
write in class Writer


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.