com.liferay.portal.upload
Class LiferayInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.servlet.ServletInputStream
          extended by com.liferay.util.servlet.ServletInputStreamWrapper
              extended by com.liferay.portal.upload.LiferayInputStream
All Implemented Interfaces:
java.io.Closeable

public class LiferayInputStream
extends com.liferay.util.servlet.ServletInputStreamWrapper

View Source

Author:
Brian Myunghun Kim, Brian Wing Shun Chan, Harry Mark

Field Summary
static int THRESHOLD_SIZE
           
 
Constructor Summary
LiferayInputStream(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 javax.servlet.ServletInputStream getCachedInputStream()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class com.liferay.util.servlet.ServletInputStreamWrapper
available, close, mark, markSupported, read, read, readLine, reset, skip
 
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 int THRESHOLD_SIZE
Constructor Detail

LiferayInputStream

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

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class com.liferay.util.servlet.ServletInputStreamWrapper
Throws:
java.io.IOException

getCachedInputStream

public javax.servlet.ServletInputStream getCachedInputStream()