org.apache.ojb.broker.util.logging
Class LoggerWrapperPrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by org.apache.ojb.broker.util.logging.LoggerWrapperPrintWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class LoggerWrapperPrintWriter
extends java.io.PrintWriter

Extremely simple piggyback for OJB Logger interface to provide PrintWriter dito.

Since:
OJB 1.0.4, 2005-apr-30
Version:
CVS $Id: LoggerWrapperPrintWriter.java 365232 2005-12-21 22:36:07Z tomdz $
Author:
Martin Kalén

Constructor Summary
LoggerWrapperPrintWriter(Logger logger)
           
LoggerWrapperPrintWriter(Logger logger, int level)
          Construct a new PrintWriter piggyback for the specified OJB logger.
 
Method Summary
 void print(boolean b)
           
 void print(char c)
           
 void print(char[] chars)
           
 void print(double v)
           
 void print(float v)
           
 void print(int i)
           
 void print(long l)
           
 void print(java.lang.Object o)
           
 void print(java.lang.String s)
           
 void println()
           
 void println(boolean b)
           
 void println(char c)
           
 void println(char[] chars)
           
 void println(double v)
           
 void println(float v)
           
 void println(int i)
           
 void println(long l)
           
 void println(java.lang.Object o)
           
 void println(java.lang.String s)
           
 void write(char[] chars)
           
 void write(char[] chars, int i, int i1)
           
 void write(int i)
           
 void write(java.lang.String s)
           
 void write(java.lang.String s, int i, int i1)
           
 
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, close, flush, format, format, printf, printf
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerWrapperPrintWriter

public LoggerWrapperPrintWriter(Logger logger,
                                int level)
Construct a new PrintWriter piggyback for the specified OJB logger.

Parameters:
logger - the logger to which all PrintWriter events should be sent to
level - the log level for PrintWriter events, can only be specified as a single level since ther is no priority concept in PrintWriter API

LoggerWrapperPrintWriter

public LoggerWrapperPrintWriter(Logger logger)
Method Detail

println

public void println()
Overrides:
println in class java.io.PrintWriter

print

public void print(char c)
Overrides:
print in class java.io.PrintWriter

println

public void println(char c)
Overrides:
println in class java.io.PrintWriter

print

public void print(double v)
Overrides:
print in class java.io.PrintWriter

println

public void println(double v)
Overrides:
println in class java.io.PrintWriter

print

public void print(float v)
Overrides:
print in class java.io.PrintWriter

println

public void println(float v)
Overrides:
println in class java.io.PrintWriter

print

public void print(int i)
Overrides:
print in class java.io.PrintWriter

println

public void println(int i)
Overrides:
println in class java.io.PrintWriter

print

public void print(long l)
Overrides:
print in class java.io.PrintWriter

println

public void println(long l)
Overrides:
println in class java.io.PrintWriter

print

public void print(boolean b)
Overrides:
print in class java.io.PrintWriter

println

public void println(boolean b)
Overrides:
println in class java.io.PrintWriter

print

public void print(char[] chars)
Overrides:
print in class java.io.PrintWriter

println

public void println(char[] chars)
Overrides:
println in class java.io.PrintWriter

print

public void print(java.lang.Object o)
Overrides:
print in class java.io.PrintWriter

println

public void println(java.lang.Object o)
Overrides:
println in class java.io.PrintWriter

print

public void print(java.lang.String s)
Overrides:
print in class java.io.PrintWriter

println

public void println(java.lang.String s)
Overrides:
println in class java.io.PrintWriter

write

public void write(int i)
Overrides:
write in class java.io.PrintWriter

write

public void write(java.lang.String s)
Overrides:
write in class java.io.PrintWriter

write

public void write(char[] chars)
Overrides:
write in class java.io.PrintWriter

write

public void write(char[] chars,
                  int i,
                  int i1)
Overrides:
write in class java.io.PrintWriter

write

public void write(java.lang.String s,
                  int i,
                  int i1)
Overrides:
write in class java.io.PrintWriter


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30