org.apache.jmeter.protocol.smtp.sampler.tools
Class CounterOutputStream
java.lang.Object
java.io.OutputStream
org.apache.jmeter.protocol.smtp.sampler.tools.CounterOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class CounterOutputStream
- extends OutputStream
Utility-class to calculate message size.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CounterOutputStream
public CounterOutputStream()
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
Copyright © 1998-2013 Apache Software Foundation. All Rights Reserved.