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
ResourceServices instance

Constructor Summary
ResourceServices()

Method Summary
ResourceServices getInstance()
URL getResource(String filename)
InputStream getResourceAsStream(String filename)
BufferedInputStream getResourceAsBufferedStream(String filename)


Field Detail

instance

    ResourceServices instance


Constructor Detail

ResourceServices

    ResourceServices()


Method Detail

getInstance

    ResourceServices getInstance()

Returns an instance of the ResourceServices


getResource

    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

getResourceAsStream

    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

getResourceAsBufferedStream

    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


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