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:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
reset
public void reset()- Overrides:
resetin classInputStream
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-