@NonNull @Override public Class<Data> getDataClass() { return opener.getDataClass(); }
@Override public void loadData(@NonNull Priority priority, @NonNull DataCallback<? super Data> callback) { try { data = opener.open(file); } catch (FileNotFoundException e) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Failed to open file", e); } callback.onLoadFailed(e); return; } callback.onDataReady(data); }
@Override public void loadData(Priority priority, DataCallback<? super Data> callback) { try { data = opener.open(file); } catch (FileNotFoundException e) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Failed to open file", e); } callback.onLoadFailed(e); return; } callback.onDataReady(data); }
@NonNull @Override public Class<Data> getDataClass() { return opener.getDataClass(); }
@Override public void cleanup() { if (data != null) { try { opener.close(data); } catch (IOException e) { // Ignored. } } }
@Override public void cleanup() { if (data != null) { try { opener.close(data); } catch (IOException e) { // Ignored. } } }