jTracer  1.03
Stack trace visualization tool
static File org.libcsdbg.jtracer.Registry.getHomeDirectory ( ) throws IOException
static

Get the user home directory.

Returns
the home directory

Definition at line 345 of file Registry.java.

Referenced by org.libcsdbg.jtracer.Registry.getPrefix().

346  {
347  File retval = FileSystemView.getFileSystemView().getHomeDirectory();
348  String path = retval.getCanonicalPath();
349 
350  String msg = null;
351  if (!retval.isDirectory())
352  msg = "The user home directory '" + path + "' doesn't exist";
353 
354  else if (!retval.canRead())
355  msg = "Can't access the user home directory '" + path + "'";
356 
357  if (msg != null)
358  throw new IOException(msg);
359 
360  return retval;
361  }
static File getHomeDirectory()
Get the user home directory.
Definition: Registry.java:345

+ Here is the caller graph for this function: