byte[] temp;int fehler;try{ fehler=in.read(temp);}catch (Exception e){/*irgendeine Fehlerbehandlung*/}