Class CounterOutputStream
java.lang.Object
java.io.OutputStream
org.apache.jmeter.protocol.smtp.sampler.tools.CounterOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Utility-class to calculate message size.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
CounterOutputStream
public CounterOutputStream()
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
write
in classOutputStream
-
write
public void write(int b) - Specified by:
write
in classOutputStream
-
getCount
public int getCount()Returns message size- Returns:
- Message size
-