Code example for IOException

Methods: e, printStackTrace

0
                    result = RESULT_FAILURE;
                } 
                in.close();
                out.close();
            } catch (IOException e) {
                Log.e(TAG, "Failed downloading LTO data", e);
                result = RESULT_FAILURE;
            } catch (URISyntaxException e) {
                Log.e(TAG, "URI syntax wrong", e);
                result = RESULT_FAILURE;
            } finally { 
                try { 
                    if (in != null) {
                        in.close();
                    } 
                    if (out != null) {
                        out.close();
                    } 
                } catch (IOException e) {
                    e.printStackTrace();
                } 
            } 
 
            Log.d(TAG, "return " + result);
            return result;