Package org.sakaiproject.importer.api
Class ResetOnCloseInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.sakaiproject.importer.api.ResetOnCloseInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ResetOnCloseInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description ResetOnCloseInputStream(File file)ResetOnCloseInputStream(InputStream anInputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfinalize()intread()-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
ResetOnCloseInputStream
public ResetOnCloseInputStream(File file) throws FileNotFoundException
- Throws:
FileNotFoundException
-
ResetOnCloseInputStream
public ResetOnCloseInputStream(InputStream anInputStream)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
finalize
public void finalize() throws IOException- Overrides:
finalizein classObject- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
-