@Deprecated public class SizedInputStream extends InputEntityStream
| Constructor and Description |
|---|
SizedInputStream(Notifiable notifiable,
InputStream inboundStream,
long size)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Deprecated.
|
void |
close()
Deprecated.
|
void |
mark(int readlimit)
Deprecated.
|
boolean |
markSupported()
Deprecated.
|
int |
read()
Deprecated.
Reads a byte from the underlying stream.
|
int |
read(byte[] b,
int off,
int len)
Deprecated.
|
void |
reset()
Deprecated.
|
long |
skip(long n)
Deprecated.
|
getInboundStream, onEndReached, onErrorreadpublic SizedInputStream(Notifiable notifiable, InputStream inboundStream, long size)
notifiable - The notifiable connection.inboundStream - The inbound stream.size - The total size that should be read from the source stream.public int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2005–2015. All rights reserved.