org.enhydra.xml.xmlc.servlet
Class ServletLogWriter
java.lang.Object
|
+--java.io.Writer
|
+--org.enhydra.xml.xmlc.servlet.ServletLogWriter
- class ServletLogWriter
- extends java.io.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 |
ServletLogWriter
public ServletLogWriter(javax.servlet.ServletContext servletContext)
- Constructor.
close
public void close()
throws java.io.IOException
- Close the stream.
- Specified by:
close
in class java.io.Writer
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Flush the stream.
- Specified by:
flush
in class java.io.Writer
java.io.IOException
write
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Write a portion of a character array.
- Specified by:
write
in class java.io.Writer
java.io.IOException
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.