public class ContentLengthInputStream extends InputStream
InputStream. Provides possibility to return defined stream length by
available() method.| 构造器和说明 |
|---|
ContentLengthInputStream(InputStream stream,
int length) |
public ContentLengthInputStream(InputStream stream, int length)
public int available()
available 在类中 InputStreampublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionpublic void mark(int readLimit)
mark 在类中 InputStreampublic int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] buffer)
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] buffer,
int byteOffset,
int byteCount)
throws IOException
read 在类中 InputStreamIOExceptionpublic void reset()
throws IOException
reset 在类中 InputStreamIOExceptionpublic long skip(long byteCount)
throws IOException
skip 在类中 InputStreamIOExceptionpublic boolean markSupported()
markSupported 在类中 InputStream