Package org.eclipse.net4j.util.io
Class LimitedInputStream
java.lang.Object
java.io.InputStream
org.eclipse.net4j.util.io.LimitedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Since:
- 3.2
- Author:
- Eike Stepper
-
Constructor Summary
ConstructorsConstructorDescriptionLimitedInputStream(InputStream in, long length) LimitedInputStream(InputStream in, long length, boolean closeBackingStream) -
Method Summary
Methods inherited from class java.io.InputStream
available, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
LimitedInputStream
- Since:
- 3.17
-
LimitedInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-