Liferay 6.2-ce-ga5

com.liferay.portal.upload
Class LiferayInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.servlet.ServletInputStream
          extended by com.liferay.portal.kernel.servlet.ServletInputStreamAdapter
              extended by com.liferay.portal.upload.LiferayInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class LiferayInputStream
extends ServletInputStreamAdapter


Field Summary
static long THRESHOLD_SIZE
           
 
Fields inherited from class com.liferay.portal.kernel.servlet.ServletInputStreamAdapter
inputStream
 
Constructor Summary
LiferayInputStream(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 void cleanUp()
           
 void close()
           
 javax.servlet.ServletInputStream getCachedInputStream()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class com.liferay.portal.kernel.servlet.ServletInputStreamAdapter
available, mark, markSupported, read, read, reset, skip
 
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
 

Field Detail

THRESHOLD_SIZE

public static final long THRESHOLD_SIZE
Constructor Detail

LiferayInputStream

public LiferayInputStream(javax.servlet.http.HttpServletRequest request)
                   throws IOException
Throws:
IOException
Method Detail

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

Liferay 6.2-ce-ga5