docs/javadoc/reference/com/facebook/common/memory/PooledByteStreams.html
|
|
Pool<V>
Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class
extends Object
| java.lang.Object | | ↳ | com.facebook.common.memory.PooledByteStreams |
Helper class for interacting with java streams, similar to guava's ByteSteams. To prevent numerous allocations of temp buffers pool of byte arrays is used.
| Public Constructors |
|---|
| Public Methods |
|---|
| long |
| Copy all bytes from InputStream to OutputStream. |
| long |
| Copy at most number of bytes from InputStream to OutputStream. |
| [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() |
|
Copy all bytes from InputStream to OutputStream.
| from | InputStream | | to | OutputStream |
| IOException | |
Copy at most number of bytes from InputStream to OutputStream.
| from | InputStream | | to | OutputStream | | bytesToCopy | bytes to copy |
| IOException | |
+Generated by Doclava. +