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 FileSource

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

All Implemented Interfaces:
Serializable

public class FileSource
extends Source
implements Serializable

File Source type. A file based source is probably the most common form of content supplied to the sealing process. A file based source can be created from a File or a file path.

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

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<content:FileSource xmlns:content="http://xmlns.oracle.com/irm/content">
    <file>${java.io.tmpdir}/sample.txt</file>
</content:FileSource>

See Also:
Serialized Form

Constructor Summary
FileSource()
          No argument constructor.
FileSource(File file)
          Constructor.

 

Method Summary
 File getFile()
          The file.
 void setFile(File value)
          The file.

 

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

 

Constructor Detail

FileSource

public FileSource()
No argument constructor.

FileSource

public FileSource(File file)
Constructor.

Method Detail

getFile

public File getFile()
The file.
Returns:
the value of the property.

setFile

public void setFile(File value)
The file.
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.