public class ContentLengthInputStream extends InputStream
InputStream. Provides possibility to return defined stream length by
available() method.| Constructor and Description |
|---|
ContentLengthInputStream(InputStream stream,
int length) |
public ContentLengthInputStream(InputStream stream, int length)
public int available()
available in class InputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readLimit)
mark in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer,
int byteOffset,
int byteCount)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long byteCount)
throws IOException
skip in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamCopyright © 2011-2015. All Rights Reserved.