Skip navigation links

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

E12907-01


oracle.irm.engine.content.source
Interface FileSource

All Superinterfaces:
Source

public interface FileSource
extends Source

A file based source for the sealing process. 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.

Creation

Instances of File Source objects can be created using the following factory style method(s).

FileSource object = createFileSource(file);
FileSource object = createFileSource(path);

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>


Method Summary
 File getFile()
          The file.

 

Methods inherited from interface oracle.irm.engine.content.source.Source
close, getContentType, getInputStream, getSize

 

Method Detail

getFile

File getFile()
The file.
Returns:
the value of the property. This method will never return null.

Skip navigation links

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

E12907-01


Copyright © 2010, Oracle. All rights reserved.