Package org.robovm.compiler.util.io
Class OpenOnReadFileInputStream
java.lang.Object
java.io.InputStream
org.robovm.compiler.util.io.OpenOnReadFileInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
public class OpenOnReadFileInputStream extends InputStream
InputStream which writes to a FileInputStream but
defers opening the FileInputStream until the first write.-
Constructor Summary
Constructors Constructor Description OpenOnReadFileInputStream(File file) -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, reset
-
Constructor Details
-
OpenOnReadFileInputStream
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-