Tabnine Logo
DiskLruCache$Entry.getDirtyFile
Code IndexAdd Tabnine to your IDE (free)

How to use
getDirtyFile
method
in
com.nostra13.universalimageloader.cache.disc.impl.ext.DiskLruCache$Entry

Best Java code snippets using com.nostra13.universalimageloader.cache.disc.impl.ext.DiskLruCache$Entry.getDirtyFile (Showing top 12 results out of 315)

origin: nostra13/Android-Universal-Image-Loader

  written[index] = true;
File dirtyFile = entry.getDirtyFile(index);
FileOutputStream outputStream;
try {
origin: nostra13/Android-Universal-Image-Loader

/**
 * Computes the initial size and collects garbage as a part of opening the
 * cache. Dirty entries are assumed to be inconsistent and will be deleted.
 */
private void processJournal() throws IOException {
  deleteIfExists(journalFileTmp);
  for (Iterator<Entry> i = lruEntries.values().iterator(); i.hasNext(); ) {
    Entry entry = i.next();
    if (entry.currentEditor == null) {
      for (int t = 0; t < valueCount; t++) {
        size += entry.lengths[t];
        fileCount++;
      }
    } else {
      entry.currentEditor = null;
      for (int t = 0; t < valueCount; t++) {
        deleteIfExists(entry.getCleanFile(t));
        deleteIfExists(entry.getDirtyFile(t));
      }
      i.remove();
    }
  }
}
origin: nostra13/Android-Universal-Image-Loader

    throw new IllegalStateException("Newly created entry didn't create value for index " + i);
  if (!entry.getDirtyFile(i).exists()) {
    editor.abort();
    return;
File dirty = entry.getDirtyFile(i);
if (success) {
  if (dirty.exists()) {
origin: jiangqqlmj/Android-Universal-Image-Loader-Modify

    throw new IllegalStateException("Newly created entry didn't create value for index " + i);
  if (!entry.getDirtyFile(i).exists()) {
    editor.abort();
    return;
File dirty = entry.getDirtyFile(i);
if (success) {
  if (dirty.exists()) {
origin: wanliyang1990/WliveTV

    throw new IllegalStateException("Newly created entry didn't create value for index " + i);
  if (!entry.getDirtyFile(i).exists()) {
    editor.abort();
    return;
File dirty = entry.getDirtyFile(i);
if (success) {
  if (dirty.exists()) {
origin: com.nostra13.universalimageloader/universal-image-loader

    throw new IllegalStateException("Newly created entry didn't create value for index " + i);
  if (!entry.getDirtyFile(i).exists()) {
    editor.abort();
    return;
File dirty = entry.getDirtyFile(i);
if (success) {
  if (dirty.exists()) {
origin: jiangqqlmj/Android-Universal-Image-Loader-Modify

  written[index] = true;
File dirtyFile = entry.getDirtyFile(index);
FileOutputStream outputStream;
try {
origin: com.nostra13.universalimageloader/universal-image-loader

  written[index] = true;
File dirtyFile = entry.getDirtyFile(index);
FileOutputStream outputStream;
try {
origin: wanliyang1990/WliveTV

  written[index] = true;
File dirtyFile = entry.getDirtyFile(index);
FileOutputStream outputStream;
try {
origin: jiangqqlmj/Android-Universal-Image-Loader-Modify

/**
 * Computes the initial size and collects garbage as a part of opening the
 * cache. Dirty entries are assumed to be inconsistent and will be deleted.
 */
private void processJournal() throws IOException {
  deleteIfExists(journalFileTmp);
  for (Iterator<Entry> i = lruEntries.values().iterator(); i.hasNext(); ) {
    Entry entry = i.next();
    if (entry.currentEditor == null) {
      for (int t = 0; t < valueCount; t++) {
        size += entry.lengths[t];
        fileCount++;
      }
    } else {
      entry.currentEditor = null;
      for (int t = 0; t < valueCount; t++) {
        deleteIfExists(entry.getCleanFile(t));
        deleteIfExists(entry.getDirtyFile(t));
      }
      i.remove();
    }
  }
}
origin: wanliyang1990/WliveTV

/**
 * Computes the initial size and collects garbage as a part of opening the
 * cache. Dirty entries are assumed to be inconsistent and will be deleted.
 */
private void processJournal() throws IOException {
  deleteIfExists(journalFileTmp);
  for (Iterator<Entry> i = lruEntries.values().iterator(); i.hasNext(); ) {
    Entry entry = i.next();
    if (entry.currentEditor == null) {
      for (int t = 0; t < valueCount; t++) {
        size += entry.lengths[t];
        fileCount++;
      }
    } else {
      entry.currentEditor = null;
      for (int t = 0; t < valueCount; t++) {
        deleteIfExists(entry.getCleanFile(t));
        deleteIfExists(entry.getDirtyFile(t));
      }
      i.remove();
    }
  }
}
origin: com.nostra13.universalimageloader/universal-image-loader

/**
 * Computes the initial size and collects garbage as a part of opening the
 * cache. Dirty entries are assumed to be inconsistent and will be deleted.
 */
private void processJournal() throws IOException {
  deleteIfExists(journalFileTmp);
  for (Iterator<Entry> i = lruEntries.values().iterator(); i.hasNext(); ) {
    Entry entry = i.next();
    if (entry.currentEditor == null) {
      for (int t = 0; t < valueCount; t++) {
        size += entry.lengths[t];
        fileCount++;
      }
    } else {
      entry.currentEditor = null;
      for (int t = 0; t < valueCount; t++) {
        deleteIfExists(entry.getCleanFile(t));
        deleteIfExists(entry.getDirtyFile(t));
      }
      i.remove();
    }
  }
}
com.nostra13.universalimageloader.cache.disc.impl.extDiskLruCache$EntrygetDirtyFile

Popular methods of DiskLruCache$Entry

  • <init>
  • getCleanFile
  • getLengths
  • invalidLengths

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now