org.jboss.jms.server.remoting
Class CountingOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.jboss.jms.server.remoting.CountingOutputStream

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

Constructor Summary
CountingOutputStream(java.io.OutputStream os)
           
 
Method Summary
 void flush()
           
 void write(int b)
           
 
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
 

Constructor Detail

CountingOutputStream

public CountingOutputStream(java.io.OutputStream os)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2006 JBoss Inc. All Rights Reserved.