Back to Fresco

LimitedInputStream

docs/javadoc/reference/com/facebook/common/streams/LimitedInputStream.html

3.6.012.3 KB
Original Source

Fresco

|

|

Packages | Classes

Classes

Packages | Classes

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

public class

LimitedInputStream

extends FilterInputStream

| java.lang.Object | | ↳ | java.io.InputStream | | | ↳ | java.io.FilterInputStream | | | | ↳ | com.facebook.common.streams.LimitedInputStream |

Class Overview

Reads the wrapped InputStream only until a specified number of bytes, the 'limit' is reached.

Summary

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

| protected InputStream | in | |

|

Public Constructors
Public Methods
int
void
int
int
void
long

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

| int | available() | | void | close() | | synchronized void | mark(int arg0) | | boolean | markSupported() | | int | read() | | int | read(byte[] arg0, int arg1, int arg2) | | int | read(byte[] arg0) | | synchronized void | reset() | | long | skip(long arg0) |

| | From class java.io.InputStream

| int | available() | | void | close() | | synchronized void | mark(int arg0) | | boolean | markSupported() | | abstract int | read() | | int | read(byte[] arg0, int arg1, int arg2) | | int | read(byte[] arg0) | | synchronized void | reset() | | long | skip(long 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.lang.AutoCloseable

| abstract void | close() |

|

Public Constructors

public LimitedInputStream(InputStream inputStream, int limit)

Public Methods

public int available()

Throws

| IOException | |

public void mark(int readLimit)

public int read()

Throws

| IOException | |

public int read(byte[] buffer, int byteOffset, int byteCount)

Throws

| IOException | |

public void reset()

Throws

| IOException | |

public long skip(long byteCount)

Throws

| IOException | |

+Generated by Doclava. +