public class FixedLengthInputStream extends InputStream
| 构造器和说明 |
|---|
FixedLengthInputStream(InputStream instream,
long length) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 InputStreamIOExceptionpublic boolean markSupported()
markSupported 在类中 InputStreampublic void mark(int readlimit)
mark 在类中 InputStreampublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip 在类中 InputStreamIOExceptionpublic InputStream getWrappedInputStream()
public void setWrappedInputStream(InputStream instream)
public long getLength()
public void setLength(long length)
public int read()
throws IOException
read 在类中 InputStreamIOExceptionCopyright © 2020. All Rights Reserved.