annotate arrows/iseof.m @ 42:ae596261e75f
Various fixes and development to audio handling
author |
samer |
date |
Tue, 02 Dec 2014 14:51:13 +0000 |
parents |
672052bd81f8 |
children |
|
rev |
line source |
samer@0
|
1 % iseof - test caught exception to see if it is Java End Of File
|
samer@0
|
2 %
|
samer@0
|
3 % iseof :: exception -> boolean.
|
samer@0
|
4 function f=iseof(ex)
|
samer@0
|
5 f = strcmp(ex.identifier,'ARROW:EOF') ...
|
samer@0
|
6 || (strcmp(ex.identifier,'MATLAB:Java:GenericException') ...
|
samer@0
|
7 && strncmp(ex.message(27:end),'java.io.EOFException',20));
|
samer@0
|
8 end
|