org.jboss.jms.server.remoting
Class CountingOutputStream
java.lang.Object
java.io.OutputStream
org.jboss.jms.server.remoting.CountingOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class CountingOutputStream
- extends java.io.OutputStream
A CountingOutputStream.
Counts how many bytes written, used as a diagnostic tool
during development when we want to see exactly what's being written,
typically to socket output streams.
- Version:
- $Revision: 1935 $
$Id: CountingOutputStream.java 1935 2007-01-09 23:29:20Z clebert.suconic@jboss.com $
- Author:
- Tim Fox
Methods inherited from class java.io.OutputStream |
close, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountingOutputStream
public CountingOutputStream(java.io.OutputStream os)
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface java.io.Flushable
- Overrides:
flush
in class java.io.OutputStream
- Throws:
java.io.IOException
Copyright © 2006 JBoss Inc. All Rights Reserved.