com.sun.jna.examples

Class FileUtils

public abstract class FileUtils extends Object

Miscellaneous file utils not provided for by Java.
Method Summary
static FileUtilsgetInstance()
booleanhasTrash()
abstract voidmoveToTrash(File[] files)
Move the given file to the system trash, if one is available.

Method Detail

getInstance

public static FileUtils getInstance()

hasTrash

public boolean hasTrash()

moveToTrash

public abstract void moveToTrash(File[] files)
Move the given file to the system trash, if one is available. Throws an exception on failure.
Copyright © 2007-2009 Timothy Wall. All Rights Reserved.