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
在类中 InputStream
public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 InputStream
IOException
public void mark(int readLimit)
mark
在类中 InputStream
public int read() throws IOException
read
在类中 InputStream
IOException
public int read(byte[] buffer) throws IOException
read
在类中 InputStream
IOException
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException
read
在类中 InputStream
IOException
public void reset() throws IOException
reset
在类中 InputStream
IOException
public long skip(long byteCount) throws IOException
skip
在类中 InputStream
IOException
public boolean markSupported()
markSupported
在类中 InputStream