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, skip
Methods inherited from class javax.servlet.ServletInputStream
readLine
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classcom.liferay.portal.kernel.servlet.ServletInputStreamAdapter
- Throws:
IOException
-
getCachedInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classcom.liferay.portal.kernel.servlet.ServletInputStreamAdapter
- Throws:
IOException
-