|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileSource
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.
Instances of File Source objects can be created using the following factory style method(s).
FileSource object = createFileSource(file);
FileSource object = createFileSource(path);
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 |
|---|
File getFile()
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||