% iseof - test caught exception to see if it is Java End Of File
%
% iseof :: exception -> boolean.
function f=iseof(ex)
	f = strcmp(ex.identifier,'ARROW:EOF') ...
		|| (strcmp(ex.identifier,'MATLAB:Java:GenericException') ...
		&& strncmp(ex.message(27:end),'java.io.EOFException',20));
end
