Code example for BufferedReader

0
            if (f.lastModified() < elderCheck) {
                shouldRefresh = true;
            } else { 
                try { 
                    final FileInputStream in = new FileInputStream(f);
                    repo = GsonUtils.fromJson(new BufferedReader(
                            new InputStreamReader(in)), Repository.class);
                    in.close();
                    return repo;
                } catch (Exception e) {
                    shouldRefresh = true;
                } 
            } 
        } else { 
            shouldRefresh = true;
        } 
        if (shouldRefresh || forceUpdate) {
            try { 
                final RepositoryService rs = new RepositoryService(context.getGHClient());
                repo = rs.getRepository(owner, name);
                if (repo != null) {