public class ConstrainedInputStream extends InputSteamDecorator
InputSteamDecorator| Constructor and Description |
|---|
ConstrainedInputStream(InputStream inputStream,
long length)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
long |
skip(long n) |
close, getInputStreamavailable, mark, markSupported, read, read, resetpublic ConstrainedInputStream(InputStream inputStream, long length)
inputStream - decorated input streamlength - constrained lengthpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2019. All rights reserved.