public class FixedLengthInputStream extends InputStream
| Constructor and Description |
|---|
FixedLengthInputStream(InputStream instream,
long length) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
long |
getLength() |
InputStream |
getWrappedInputStream() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
void |
reset() |
void |
setLength(long length) |
void |
setWrappedInputStream(InputStream instream) |
long |
skip(long n) |
close, read, readpublic FixedLengthInputStream(InputStream instream, long length)
public void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void mark(int readlimit)
mark in class InputStreampublic int available()
throws IOException
available in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic InputStream getWrappedInputStream()
public void setWrappedInputStream(InputStream instream)
public long getLength()
public void setLength(long length)
public int read()
throws IOException
read in class InputStreamIOExceptionCopyright © 2021. All Rights Reserved.