Class UploadProgressInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.gcube.portlets.widgets.fileupload.server.UploadProgressInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class UploadProgressInputStream extends FilterInputStream
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description UploadProgressInputStream(InputStream in, long totalBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(org.apache.commons.fileupload.ProgressListener listener)voidclose()intread()intread(byte[] b)intread(byte[] b, int off, int len)-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
UploadProgressInputStream
public UploadProgressInputStream(InputStream in, long totalBytes)
-
-
Method Detail
-
addListener
public void addListener(org.apache.commons.fileupload.ProgressListener listener)
-
read
public int read() throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
-