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 Details

    • COPY_MULTIPART_STREAM_TO_FILE

      public static final String 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

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class com.liferay.portal.kernel.servlet.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 com.liferay.portal.kernel.servlet.ServletInputStreamAdapter
      Throws:
      IOException