Package org.greenrobot.essentials.io
Class RepeaterInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.greenrobot.essentials.io.RepeaterInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Repeats an input stream to an additional OutputStream. The data of the InputStream becomes available for two
purposes, e.g. reading data and storing for caching.
Note: OutputStream is not closed when close() is called.
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
out
-
-
Constructor Details
-
RepeaterInputStream
-
-
Method Details
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classFilterInputStream
-
mark
public void mark(int readlimit) - Overrides:
mark
in classFilterInputStream
-
reset
- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
-