| java.lang.Object | |
| ↳ | com.facebook.cache.common.WriterCallbacks | 
Utility class to create typical WriterCallbacks. 
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| WriterCallbacks() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static WriterCallback | from(InputStream is) Creates a writer callback that copies all the content read from an InputStream into the
 target stream. | ||||||||||
| static WriterCallback | from(byte[] data) Creates a writer callback that writes some byte array to the target stream. | ||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
Creates a writer callback that copies all the content read from an InputStream into the target stream.
This writer can be used only once.
| is | the source | 
|---|
Creates a writer callback that writes some byte array to the target stream.
This writer can be used many times.
| data | the bytes to write | 
|---|