org.springframework.util
Class CommonsLogWriter
java.lang.Object
   java.io.Writer
java.io.Writer
       org.springframework.util.CommonsLogWriter
org.springframework.util.CommonsLogWriter
- All Implemented Interfaces: 
- Closeable, Flushable, Appendable
- public class CommonsLogWriter 
- extends Writer
java.io.Writer adapter for a Commons Logging Log.
- Since:
- 2.5.1
- Author:
- Juergen Hoeller
 
 
| Constructor Summary | 
| CommonsLogWriter(Log logger)Create a new CommonsLogWriter for the given Commons Logging logger.
 | 
 
| Method Summary | 
|  void | close()
 | 
|  void | flush()
 | 
|  void | write(char ch)
 | 
|  void | write(char[] buffer,
      int offset,
      int length)
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CommonsLogWriter
public CommonsLogWriter(Log logger)
- Create a new CommonsLogWriter for the given Commons Logging logger.
 
- Parameters:
- logger- the Commons Logging logger to write to
 
write
public void write(char ch)
- 
 
write
public void write(char[] buffer,
                  int offset,
                  int length)
- 
- Specified by:
- writein class- Writer
 
- 
 
flush
public void flush()
- 
- Specified by:
- flushin interface- Flushable
- Specified by:
- flushin class- Writer
 
- 
 
close
public void close()
- 
- Specified by:
- closein interface- Closeable
- Specified by:
- closein class- Writer
 
-