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 InputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void mark(int readLimit)
mark
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] buffer) throws IOException
read
in class InputStream
IOException
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long byteCount) throws IOException
skip
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
Copyright © 2011-2015. All Rights Reserved.