org.hfbk.vis.FileUtils Class Reference

List of all members.

Static Public Member Functions

static File getNextFreeFile (String path) throws IOException
static void saveLocal (String url)
static InputStream getStream (String ressource)
static String read (String path)
static void browse (String url)

Detailed Description

Definition at line 15 of file FileUtils.java.


Member Function Documentation

static File org.hfbk.vis.FileUtils.getNextFreeFile ( String  path  )  throws IOException [static]

create a new File ready to write. a counter is increased until the given pathname, counter and suffix give a non existiend file's name.

Parameters:
path the wanted filename
Returns:
an empty File ready to write
Exceptions:
IOException if path is not writable (no rights to, bad filename)

Definition at line 26 of file FileUtils.java.

Referenced by org.hfbk.vis.FileUtils.saveLocal().

Here is the caller graph for this function:

static void org.hfbk.vis.FileUtils.saveLocal ( String  url  )  [static]

saves the given url to the users home directory. tries to preserve remote filename, adds a counter if existing.

Parameters:
url to copy

Definition at line 52 of file FileUtils.java.

References org.hfbk.vis.FileUtils.getNextFreeFile().

Here is the call graph for this function:

static InputStream org.hfbk.vis.FileUtils.getStream ( String  ressource  )  [static]

open a ressource and get InputStream

Definition at line 79 of file FileUtils.java.

Referenced by org.hfbk.vis.FileUtils.read().

Here is the caller graph for this function:

static String org.hfbk.vis.FileUtils.read ( String  path  )  [static]

read in a text file.

Definition at line 91 of file FileUtils.java.

References org.hfbk.vis.FileUtils.getStream().

Here is the call graph for this function:

static void org.hfbk.vis.FileUtils.browse ( String  url  )  [static]

try to open url in users default browser. needs jre1.6 but fails harmless if not.

Parameters:
url to browse

Definition at line 114 of file FileUtils.java.


The documentation for this class was generated from the following file:
Generated on Tue Apr 7 17:58:07 2009 for visclient by  doxygen 1.5.1