public class

TruncatedInputStream

extends ProxyInputStream
java.lang.Object
   ↳ java.io.InputStream
     ↳ java.io.FilterInputStream
       ↳ org.apache.commons.io.input.ProxyInputStream
         ↳ com.rabbitmq.client.impl.TruncatedInputStream

Class Overview

Utility stream: proxies another stream, making it appear to be no longer than a preset limit.

Summary

[Expand]
Inherited Fields
From class java.io.FilterInputStream
Public Constructors
TruncatedInputStream(InputStream in, long limit)
Public Methods
int available()
void mark(int readlimit)
int read(byte[] b)
int read()
int read(byte[] b, int off, int len)
void reset()
long skip(long n)
[Expand]
Inherited Methods
From class org.apache.commons.io.input.ProxyInputStream
From class java.io.FilterInputStream
From class java.io.InputStream
From class java.lang.Object
From interface java.io.Closeable

Public Constructors

public TruncatedInputStream (InputStream in, long limit)

Public Methods

public int available ()

Throws
IOException

public void mark (int readlimit)

public int read (byte[] b)

Throws
IOException

public int read ()

Throws
IOException

public int read (byte[] b, int off, int len)

Throws
IOException

public void reset ()

Throws
IOException

public long skip (long n)

Throws
IOException