Package com.dassault_systemes.catweb.tools.resource

   
Class ResourceServices

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.catweb.tools.resource.ResourceServices
Class Location

Framework : PortalBase

Module : PLBtools

Class Description

public class ResourceServices

File resource services. This class offers services for acess and load of files of the runtime view.

Field Summary
protected static ResourceServices instance

Constructor Summary
ResourceServices()

Method Summary
public static ResourceServices getInstance()
Returns an instance of the ResourceServices
public URL getResource(String filename)
Returns the URL of the resource described by filename.
public BufferedInputStream getResourceAsBufferedStream(String filename)
Returns the BufferedInputStream of the resource described by filename.
public InputStream getResourceAsStream(String filename)
Returns the InputStream of the resource described by filename.


Field Detail

instance

    protected static ResourceServices instance


Constructor Detail

ResourceServices

    ResourceServices()


Method Detail

getInstance

    public static ResourceServices getInstance()

Returns an instance of the ResourceServices


getResource

    public URL getResource(String filename)

Returns the URL of the resource described by filename. Searchs the resource with the fileName in the classpath directories, and after in the CodeBase of the application.

See Also:
java.net.URL

getResourceAsBufferedStream

    public BufferedInputStream getResourceAsBufferedStream(String filename)

Returns the BufferedInputStream of the resource described by filename. Searchs the resource with the fileName in the classpath directories, and after in the CodeBase of the application.

See Also:
java.io.BufferedInputStream

getResourceAsStream

    public InputStream getResourceAsStream(String filename)

Returns the InputStream of the resource described by filename. Searchs the resource with the fileName in the classpath directories, and after in the CodeBase of the application.

See Also:
java.io.InputStream


Copyright © 2000, Dassault Systèmes. All rights reserved