org.apache.log4j.helpers

Class CountingQuietWriter


public class CountingQuietWriter
extends QuietWriter

Counts the number of bytes written.
Author:
Heinz Richter, heinz.richter@frogdot.com
Since:
0.8.1

Field Summary

protected long
count

Fields inherited from class org.apache.log4j.helpers.QuietWriter

errorHandler

Constructor Summary

CountingQuietWriter(Writer writer, ErrorHandler eh)

Method Summary

long
getCount()
void
setCount(long count)
void
write(String string)

Methods inherited from class org.apache.log4j.helpers.QuietWriter

flush, setErrorHandler, write

Field Details

count

protected long count

Constructor Details

CountingQuietWriter

public CountingQuietWriter(Writer writer,
                           ErrorHandler eh)

Method Details

getCount

public long getCount()

setCount

public void setCount(long count)

write

public void write(String string)
Overrides:
write in interface QuietWriter

Copyright 2000-2005 Apache Software Foundation.