Back to Fresco

CountingOutputStream

docs/javadoc/reference/com/facebook/common/internal/CountingOutputStream.html

3.6.013.3 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

Summary: Inherited Fields | Ctors | Methods | Inherited Methods | [Expand All]

public class

CountingOutputStream

extends FilterOutputStream

| java.lang.Object | | ↳ | java.io.OutputStream | | | ↳ | java.io.FilterOutputStream | | | | ↳ | com.facebook.common.internal.CountingOutputStream |

Class Overview

An OutputStream that counts the number of bytes written.

Summary

| [Expand] Inherited Fields | | --- | | From class java.io.FilterOutputStream

| protected OutputStream | out | |

|

Public Constructors
Constructs a new FilterOutputStream with out as its target stream.
Public Methods
void
long
Returns the number of bytes written.
void
void

| [Expand] Inherited Methods | | --- | | From class java.io.FilterOutputStream

| void | close() | | void | flush() | | void | write(byte[] arg0) | | void | write(byte[] arg0, int arg1, int arg2) | | void | write(int arg0) |

| | From class java.io.OutputStream

| void | close() | | void | flush() | | void | write(byte[] arg0) | | void | write(byte[] arg0, int arg1, int arg2) | | abstract void | write(int arg0) |

| | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface java.io.Closeable

| abstract void | close() |

| | From interface java.io.Flushable

| abstract void | flush() |

| | From interface java.lang.AutoCloseable

| abstract void | close() |

|

Public Constructors

public CountingOutputStream(OutputStream out)

Constructs a new FilterOutputStream with out as its target stream.

Parameters

| out | the target stream that this stream writes to. |

Public Methods

public void close()

Throws

| IOException | |

public long getCount()

Returns the number of bytes written.

public void write(byte[] b, int off, int len)

Throws

| IOException | |

public void write(int b)

Throws

| IOException | |

+Generated by Doclava. +