Package io.milton.httpclient
Class NotifyingFileInputStream
java.lang.Object
java.io.InputStream
io.milton.httpclient.NotifyingFileInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionNotifyingFileInputStream(File f, ProgressListener listener) NotifyingFileInputStream(InputStream in, Long length, String path, ProgressListener listener) -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
NotifyingFileInputStream
- Throws:
IOException
-
NotifyingFileInputStream
public NotifyingFileInputStream(InputStream in, Long length, String path, ProgressListener listener) throws IOException - Parameters:
in- - the input stream containing file datalength- - maybe null if unknownpath-listener-- Throws:
IOException
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-