Apache JMeter

org.apache.jmeter.protocol.smtp.sampler.tools
Class CounterOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.jmeter.protocol.smtp.sampler.tools.CounterOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class CounterOutputStream
extends OutputStream

Utility-class to calculate message size.


Constructor Summary
CounterOutputStream()
           
 
Method Summary
 void close()
          
 void flush()
          
 int getCount()
          Returns message size
 void write(byte[] b, int off, int len)
          
 void write(int b)
          
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterOutputStream

public CounterOutputStream()
Method Detail

close

public void close()

Specified by:
close in interface Closeable
Overrides:
close in class OutputStream

flush

public void flush()

Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream

write

public void write(byte[] b,
                  int off,
                  int len)

Overrides:
write in class OutputStream

write

public void write(int b)

Specified by:
write in class OutputStream

getCount

public int getCount()
Returns message size

Returns:
Message size

Apache JMeter

Copyright © 1998-2013 Apache Software Foundation. All Rights Reserved.