Back to Fresco

WriterCallbacks

docs/javadoc/reference/com/facebook/cache/common/WriterCallbacks.html

3.6.012.5 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Enums

Packages | Classes

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

public class

WriterCallbacks

extends Object

| java.lang.Object | | ↳ | com.facebook.cache.common.WriterCallbacks |

Class Overview

Utility class to create typical WriterCallbacks.

Summary

Public Constructors
Public Methods
static WriterCallback
Creates a writer callback that copies all the content read from an InputStream into the target stream.
static WriterCallback
Creates a writer callback that writes some byte array to the target stream.

| [Expand] Inherited Methods | | --- | | 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() |

|

Public Constructors

public WriterCallbacks()

Public Methods

public static WriterCallback from(InputStream is)

Creates a writer callback that copies all the content read from an InputStream into the target stream.

This writer can be used only once.

Parameters

| is | the source |

Returns
  • the writer callback

public static WriterCallback from(byte[] data)

Creates a writer callback that writes some byte array to the target stream.

This writer can be used many times.

Parameters

| data | the bytes to write |

Returns
  • the writer callback

+Generated by Doclava. +