am 3c8bde55: Merge "Report that a JavaInputStreamAdaptor is at end." into lmp-dev
* commit '3c8bde5534d81518f5baf3795989f367373f7dfd': Report that a JavaInputStreamAdaptor is at end.
This commit is contained in:
@@ -78,6 +78,8 @@ private:
|
|||||||
env->ExceptionDescribe();
|
env->ExceptionDescribe();
|
||||||
env->ExceptionClear();
|
env->ExceptionClear();
|
||||||
SkDebugf("---- read threw an exception\n");
|
SkDebugf("---- read threw an exception\n");
|
||||||
|
// Consider the stream to be at the end, since there was an error.
|
||||||
|
fIsAtEnd = true;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,6 +94,9 @@ private:
|
|||||||
env->ExceptionDescribe();
|
env->ExceptionDescribe();
|
||||||
env->ExceptionClear();
|
env->ExceptionClear();
|
||||||
SkDebugf("---- read:GetByteArrayRegion threw an exception\n");
|
SkDebugf("---- read:GetByteArrayRegion threw an exception\n");
|
||||||
|
// The error was not with the stream itself, but consider it to be at the
|
||||||
|
// end, since we do not have a way to recover.
|
||||||
|
fIsAtEnd = true;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user