FileDocCategorySizeDatePackage
CountingOutputStream.javaAPI DocAndroid 1.5 API1143Wed May 06 22:42:46 BST 2009com.android.email.mail.transport

CountingOutputStream

public class CountingOutputStream extends OutputStream
A simple OutputStream that does nothing but count how many bytes are written to it and makes that count available to callers.

Fields Summary
private long
mCount
Constructors Summary
public CountingOutputStream()

    
Methods Summary
public longgetCount()

        return mCount;
    
public voidwrite(int oneByte)

        mCount++;