Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.content.source
Class ResourceSourceFactory

java.lang.Object
  extended by oracle.irm.engine.content.source.ResourceSourceFactory


public final class ResourceSourceFactory
extends Object

Resource Source factory. This class provides methods for creating new instances of ResourceSource objects.


Method Summary
static ResourceSource createResourceSource(String path)
          Create a resource source from a file.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

createResourceSource

public static ResourceSource createResourceSource(String path)
                                           throws IOException,
                                                  UnsupportedContentTypeException
Create a resource source from a file. The file type of the resource is inferred from the file extension.
Parameters:
path - the resource path. The resource should contain unsealed data.
Returns:
a new Resource Source instance.
Throws:
IOException - if there is an input/output error accessing the resource or the resource does not exist.
UnsupportedContentTypeException - unsupported file type.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.