Class CounterOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.jmeter.protocol.smtp.sampler.tools.CounterOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class CounterOutputStream extends OutputStream
Utility-class to calculate message size.
-
-
Constructor Summary
Constructors Constructor Description CounterOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()intgetCount()Returns message sizevoidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-
flush
public void flush()
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream
-
write
public void write(byte[] b, int off, int len)- Overrides:
writein classOutputStream
-
write
public void write(int b)
- Specified by:
writein classOutputStream
-
getCount
public int getCount()
Returns message size- Returns:
- Message size
-
-