Codota Logo
Util.deleteContents
Code IndexAdd Codota to your IDE (free)

How to use
deleteContents
method
in
com.nostra13.universalimageloader.cache.disc.impl.ext.Util

Best Java code snippets using com.nostra13.universalimageloader.cache.disc.impl.ext.Util.deleteContents (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: nostra13/Android-Universal-Image-Loader

/**
 * Deletes the contents of {@code dir}. Throws an IOException if any file
 * could not be deleted, or if {@code dir} is not a readable directory.
 */
static void deleteContents(File dir) throws IOException {
  File[] files = dir.listFiles();
  if (files == null) {
    throw new IOException("not a readable directory: " + dir);
  }
  for (File file : files) {
    if (file.isDirectory()) {
      deleteContents(file);
    }
    if (!file.delete()) {
      throw new IOException("failed to delete file: " + file);
    }
  }
}
origin: nostra13/Android-Universal-Image-Loader

/**
 * Closes the cache and deletes all of its stored values. This will delete
 * all files in the cache directory including files that weren't created by
 * the cache.
 */
public void delete() throws IOException {
  close();
  Util.deleteContents(directory);
}
origin: com.nostra13.universalimageloader/universal-image-loader

/**
 * Closes the cache and deletes all of its stored values. This will delete
 * all files in the cache directory including files that weren't created by
 * the cache.
 */
public void delete() throws IOException {
  close();
  Util.deleteContents(directory);
}
origin: wanliyang1990/WliveTV

/**
 * Closes the cache and deletes all of its stored values. This will delete
 * all files in the cache directory including files that weren't created by
 * the cache.
 */
public void delete() throws IOException {
  close();
  Util.deleteContents(directory);
}
origin: wanliyang1990/WliveTV

/**
 * Deletes the contents of {@code dir}. Throws an IOException if any file
 * could not be deleted, or if {@code dir} is not a readable directory.
 */
static void deleteContents(File dir) throws IOException {
  File[] files = dir.listFiles();
  if (files == null) {
    throw new IOException("not a readable directory: " + dir);
  }
  for (File file : files) {
    if (file.isDirectory()) {
      deleteContents(file);
    }
    if (!file.delete()) {
      throw new IOException("failed to delete file: " + file);
    }
  }
}
origin: jiangqqlmj/Android-Universal-Image-Loader-Modify

/**
 * Closes the cache and deletes all of its stored values. This will delete
 * all files in the cache directory including files that weren't created by
 * the cache.
 */
public void delete() throws IOException {
  close();
  Util.deleteContents(directory);
}
origin: com.nostra13.universalimageloader/universal-image-loader

/**
 * Deletes the contents of {@code dir}. Throws an IOException if any file
 * could not be deleted, or if {@code dir} is not a readable directory.
 */
static void deleteContents(File dir) throws IOException {
  File[] files = dir.listFiles();
  if (files == null) {
    throw new IOException("not a readable directory: " + dir);
  }
  for (File file : files) {
    if (file.isDirectory()) {
      deleteContents(file);
    }
    if (!file.delete()) {
      throw new IOException("failed to delete file: " + file);
    }
  }
}
origin: jiangqqlmj/Android-Universal-Image-Loader-Modify

/**
 * Deletes the contents of {@code dir}. Throws an IOException if any file
 * could not be deleted, or if {@code dir} is not a readable directory.
 */
static void deleteContents(File dir) throws IOException {
  File[] files = dir.listFiles();
  if (files == null) {
    throw new IOException("not a readable directory: " + dir);
  }
  for (File file : files) {
    if (file.isDirectory()) {
      deleteContents(file);
    }
    if (!file.delete()) {
      throw new IOException("failed to delete file: " + file);
    }
  }
}
com.nostra13.universalimageloader.cache.disc.impl.extUtildeleteContents

Javadoc

Deletes the contents of dir. Throws an IOException if any file could not be deleted, or if dir is not a readable directory.

Popular methods of Util

  • closeQuietly
  • readFully

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getSystemService (Context)
  • findViewById (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now