Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache JMeter
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

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

Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache JMeter
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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