-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
@Deprecated() public class ExceptionCatchingInputStream extends InputStream
An InputStream that catches IOExceptions during read and skip calls and stores them so they can later be handled or thrown. This class is a workaround for a framework issue where exceptions during reads while decoding bitmaps in can return partially decoded bitmaps.
-
-
Field Summary
Fields Modifier and Type Field Description private IOExceptionexception
-
Method Summary
Modifier and Type Method Description IOExceptiongetException()static ExceptionCatchingInputStreamobtain(@NonNull() InputStream toWrap)intavailable()voidclose()voidmark(int readLimit)booleanmarkSupported()intread(Array<byte> buffer)intread(Array<byte> buffer, int byteOffset, int byteCount)synchronized voidreset()longskip(long byteCount)intread()voidrelease()-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getException
@Nullable() IOException getException()
-
obtain
@NonNull() static ExceptionCatchingInputStream obtain(@NonNull() InputStream toWrap)
-
available
int available()
-
close
void close()
-
mark
void mark(int readLimit)
-
markSupported
boolean markSupported()
-
reset
synchronized void reset()
-
skip
long skip(long byteCount)
-
read
int read()
-
release
void release()
-
-
-
-