Lines Matching refs:editor
214 DiskLruCache.Editor editor = null;
216 editor = cache.edit(urlToKey(response.request()));
217 if (editor == null) {
220 entry.writeTo(editor);
221 return new CacheRequestImpl(editor);
223 abortQuietly(editor);
243 DiskLruCache.Editor editor = null;
245 editor = snapshot.edit(); // Returns null if snapshot is not current.
246 if (editor != null) {
247 entry.writeTo(editor);
248 editor.commit();
251 abortQuietly(editor);
255 private void abortQuietly(DiskLruCache.Editor editor) {
258 if (editor != null) {
259 editor.abort();
337 private final DiskLruCache.Editor editor;
342 public CacheRequestImpl(final DiskLruCache.Editor editor) throws IOException {
343 this.editor = editor;
344 this.cacheOut = editor.newOutputStream(ENTRY_BODY);
355 editor.commit();
376 editor.abort();
489 public void writeTo(DiskLruCache.Editor editor) throws IOException {
490 OutputStream out = editor.newOutputStream(ENTRY_METADATA);