Skip navigation links

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

E12907-03


oracle.irm.engine.types.content.source
Class ResourceSource

java.lang.Object
  extended by oracle.irm.engine.types.content.source.Source
      extended by oracle.irm.engine.types.content.source.ResourceSource

All Implemented Interfaces:
Serializable

public class ResourceSource
extends Source
implements Serializable

Resource Source type. A resource file source can be used to seal resources. The content type of the resource is determined by it's file extension.

A resource source will close the input stream if close is called.

XML Serialization

Resource Source instances can be serialized as an XML document. This XML document can also be used to recreate a Resource Source object. The following XML document shows an example Resource Source in XML form.

<?xml version="1.0" encoding="UTF-8"?>
<content:ResourceSource xmlns:content="http://xmlns.oracle.com/irm/content">
    <path>/META-INF/xml/content/source/ResourceSource.xml</path>
</content:ResourceSource>

See Also:
Serialized Form

Constructor Summary
ResourceSource()
          No argument constructor.
ResourceSource(String path)
          Constructor.

 

Method Summary
 String getPath()
          The resource path.
 void setPath(String value)
          The resource path.

 

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

 

Constructor Detail

ResourceSource

public ResourceSource()
No argument constructor.

ResourceSource

public ResourceSource(String path)
Constructor.

Method Detail

getPath

public String getPath()
The resource path.
Returns:
the value of the property.

setPath

public void setPath(String value)
The resource path.
Parameters:
value - the new value for the property.

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.