Package overit.geocall.util
Class TeeInputStream
java.lang.Object
java.io.InputStream
overit.geocall.util.TeeInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Utility class that is an implementation of tee stream
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTeeInputStream(InputStream is, OutputStream cacheOs) Creates an instance of TeeInputStream -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
Field Details
-
is
-
cacheOs
-
-
Constructor Details
-
TeeInputStream
Creates an instance of TeeInputStream- Parameters:
is- The InputStreamcacheOs- The OutputStream
-
-
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
-
reset
public void reset()- Overrides:
resetin classInputStream
-