public class Downloads
extends java.lang.Object
Constructor and Description |
---|
Downloads() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkDownloadDirectory()
Check if the downloaddirectory is accessable and throws exceptions if not
|
static java.io.File |
getDownloadDirectory()
Returns the Downloaddirectory
|
static javax.swing.JFileChooser |
getFileChooser()
Returns a
JFileChooser starting at the DownloadDirectory |
public static java.io.File getDownloadDirectory()
file
java.lang.NullPointerException
java.lang.SecurityException
java.io.FileNotFoundException
public static boolean checkDownloadDirectory() throws java.io.FileNotFoundException, java.lang.SecurityException, java.lang.NullPointerException
downloadDir
- java.io.FileNotFoundException
- if the directory not existjava.lang.SecurityException
- if user hasn't permissions to write to the directoryjava.lang.NullPointerException
- if the directory is not set in preferencespublic static javax.swing.JFileChooser getFileChooser()
JFileChooser
starting at the DownloadDirectory