Code example for StreamCorruptedException

Methods: toString

0
        Log.e(TAG, "invalid profile file");
        return null; 
      } 
    } 
    catch (StreamCorruptedException ex) {
      Log.e(TAG, ex.toString());
    } 
    catch (FileNotFoundException ex) {
      Log.e(TAG, "Profile file " + f + " not found!");
    } 
    catch (IOException ex) {
      Log.e(TAG, ex.toString());
    } 
    catch (ClassNotFoundException ex) {
      Log.e(TAG, ex.toString());
    } 
    finally { 
      if (ois != null) {
        try { 
          ois.close();
        }