Package com.liferay.portal.kernel.upload
Class ProgressInputStream
Object
InputStream
com.liferay.portal.kernel.upload.ProgressInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Author:
- Jorge Ferrer, Brian Wing Shun Chan, Minhchau Dang
-
Constructor Summary
ConstructorsConstructorDescriptionProgressInputStream
(PortletRequest portletRequest, InputStream inputStream, long totalSize, String progressId) -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ProgressInputStream
public ProgressInputStream(PortletRequest portletRequest, InputStream inputStream, long totalSize, String progressId)
-
-
Method Details
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
clearProgress
public void clearProgress() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
getTotalRead
public long getTotalRead() -
initProgress
public void initProgress() -
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
-
readAll
- Throws:
IOException
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-