Class LimitedInputStream
Object
InputStream
com.liferay.portal.kernel.internal.dao.jdbc.LimitedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Skip the specified offset until it fails three times. This is used to prevent
reading an InputStream infinitely.
- Author:
- Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
LimitedInputStream
- Throws:
IOException
-
-
Method Details
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
mark
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
reset
public void reset()- Overrides:
reset
in classInputStream
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-