docs/javadoc/reference/com/facebook/common/util/StreamUtil.html
|
|
Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class
extends Object
| java.lang.Object | | ↳ | com.facebook.common.util.StreamUtil |
Utility method for dealing with Streams.
| Public Constructors |
|---|
| Public Methods |
|---|
| static byte[] |
| Efficiently fetch the bytes from the InputStream, provided that caller can guess exact numbers of bytes that can be read from inputStream. |
| static byte[] |
| Efficiently fetch bytes from InputStream is by delegating to getBytesFromStream(is, is.available()) |
| static long |
| Skips exactly bytesCount bytes in inputStream unless end of stream is reached first. |
| [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() |
|
Efficiently fetch the bytes from the InputStream, provided that caller can guess exact numbers of bytes that can be read from inputStream. Avoids one extra byte[] allocation that ByteStreams.toByteArray() performs.
| hint | - size of inputStream's content in bytes |
| IOException | |
Efficiently fetch bytes from InputStream is by delegating to getBytesFromStream(is, is.available())
| IOException | |
Skips exactly bytesCount bytes in inputStream unless end of stream is reached first.
| inputStream | input stream to skip bytes from | | bytesCount | number of bytes to skip |
| IOException | |
+Generated by Doclava. +