Code example for Reader

Methods: close

0
    } 
 
    private <V> V fromJson(HttpRequest request, Class<V> target) throws IOException {
        Reader reader = request.bufferedReader();
        try { 
            return GSON.fromJson(reader, target);
        } catch (JsonParseException e) {
            throw new JsonException(e);
        } finally { 
            try { 
                reader.close();
            } catch (IOException ignored) {
                // Ignored 
            } 
        } 
    } 
 
    /** 
     * Get all bootstrap Users that exist on Parse.com 
     * 
     * @return non-null but possibly empty list of bootstrap