com.liferay.portal.upload
Class LiferayInputStream
java.lang.Object
java.io.InputStream
javax.servlet.ServletInputStream
com.liferay.portal.kernel.servlet.ServletInputStreamAdapter
com.liferay.portal.upload.LiferayInputStream
- All Implemented Interfaces:
- Closeable, AutoCloseable
public class LiferayInputStream
- extends ServletInputStreamAdapter
| Methods inherited from class javax.servlet.ServletInputStream |
readLine |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THRESHOLD_SIZE
public static final long THRESHOLD_SIZE
LiferayInputStream
public LiferayInputStream(javax.servlet.http.HttpServletRequest request)
throws IOException
- Throws:
IOException
cleanUp
public void cleanUp()
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in interface AutoCloseable- Overrides:
close in class ServletInputStreamAdapter
- Throws:
IOException
getCachedInputStream
public javax.servlet.ServletInputStream getCachedInputStream()
throws IOException
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class ServletInputStreamAdapter
- Throws:
IOException