AmJFile

AmJFile is a free and very simple API that allows you to copy files or directories as well as delete files or directories
Download

AmJFile Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Amro Mousa
  • File Size:
  • 1 KB

AmJFile Tags


AmJFile Description

If you have ever needed to copy a file or directory to find that Java's basic File I/O API didn't support it, you need AmJFile. AmJFile is a free and very simple API that allows you to copy files or directories as well as delete files or directories through Java method calls. A future release will allow file search. AmJFile is setup as a "singleton" so simply use it as follows: AmJFile fileManager = AmJFile.Instance(); This will return the file manager and allow you to make the method calls available to you under the AmJFile API. The following (intuitively named) methods are available: + delete(File file_object_to_delete) :: This method accepts one File object parameter. The object can point either to a folder or file that will be deleted. + copy(File source_file_object, File destination_file_object) :: This method accepts two File objects. The first is the source object, the later being the destination. As with delete, it works with either files or folders. + stopCopy() :: This method stops any active copies of files or folders. If this is called, enableCopy() must be used before any other copies are attempted. This is effectively canceling a file copy. It does not "pause" a copy. + enableCopy() :: This method reenables copy routines. It must be used following a call to the stopCopy() method prior to any attempt to use the copy() method. Requirements: · Java


AmJFile Related Software