org.sonatype.gossip.listener
Class CountingWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.sonatype.gossip.listener.CountingWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class CountingWriter
- extends FilterWriter
Writer which counts the number of bytes written.
- Since:
- 1.0
- Author:
- Jason Dillon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountingWriter
public CountingWriter(Writer out)
size
public long size()
reset
public void reset()
write
public void write(int c)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
write
public void write(String str,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
Copyright © 2008-2012 Sonatype. All Rights Reserved.