Package com.liferay.portal.upload
Class LiferayInputStream
Object
InputStream
javax.servlet.ServletInputStream
com.liferay.portal.kernel.servlet.ServletInputStreamAdapter
com.liferay.portal.upload.LiferayInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
public class LiferayInputStream
extends com.liferay.portal.kernel.servlet.ServletInputStreamAdapter
- Author:
- Brian Myunghun Kim, Brian Wing Shun Chan, Harry Mark
-
Field Summary
FieldsFields inherited from class com.liferay.portal.kernel.servlet.ServletInputStreamAdapter
inputStream -
Constructor Summary
ConstructorsConstructorDescriptionLiferayInputStream(javax.servlet.http.HttpServletRequest httpServletRequest) -
Method Summary
Methods inherited from class com.liferay.portal.kernel.servlet.ServletInputStreamAdapter
available, isFinished, isReady, mark, markSupported, read, read, reset, setReadListener, skipMethods inherited from class javax.servlet.ServletInputStream
readLineMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
COPY_MULTIPART_STREAM_TO_FILE
-
THRESHOLD_SIZE
public static final long THRESHOLD_SIZE
-
-
Constructor Details
-
LiferayInputStream
public LiferayInputStream(javax.servlet.http.HttpServletRequest httpServletRequest) throws IOException - Throws:
IOException
-
-
Method Details
-
cleanUp
public void cleanUp() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classcom.liferay.portal.kernel.servlet.ServletInputStreamAdapter- Throws:
IOException
-
getCachedInputStream
- Throws:
IOException
-
read
- Overrides:
readin classcom.liferay.portal.kernel.servlet.ServletInputStreamAdapter- Throws:
IOException
-