class: ResourceUtil

public class: ResourceUtil
Author: franke (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1951 $ $LastChangedDate: 2009-05-07 10:; Complexity: 1
Dates: Created: 16.07.2009 15:13:17; Modified: 16.07.2009 15:13:17;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {D3A6BB6A-2E6C-4ada-884B-911F55E851F5}
Utility class to deal with resources such as files and directories. Either on the file system or in jar files.
 

Goto: Custom Properties, Fields, Methods

Appears in: util

Custom Properties
 
ResourceUtil Attributes
Attribute Details
private static Logger
  logger
Initial: Logger.getLogger(ResourceUtil.class)
 
ResourceUtil Methods
Operation Details
public static
getFilenamesInDirectory(
   String dir):File
Sequential
Tags: throws=IOException
Notes: Gets an array of files containing the files in a given directory.
@return Array of files.
public static
getResourceAsFile(
   String fileName):File
Sequential
Tags: throws=FileNotFoundException
Notes: Gets a resource as InputStream.
@return The resource as InputStream.
public static
getResourceAsStream(
   String fileName):InputStream
Sequential
Tags: throws=FileNotFoundException
Notes: Gets a resource as InputStream.
@return The resource as InputStream.
public static
getResourceAsString(
   String fileName):String
Sequential
Tags: throws=IOException
Notes: Gets a resource as String.
@return The resource as String.
protected
ResourceUtil():
Sequential
Notes: Hidden constructor.