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
ConstructorDescriptionLimitedInputStream
(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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-