| 
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Source
A source of content for the sealing process. When content is sealed the sealing algorithms need to know the format/type of the content and, if possible, the size of the content. A source provides these details. Various forms of source are available depending on how the content is to be provided to the sealing algorithms. For example, if a file is to be sealed a FileSource can be used.
Collections for Source objects can be created using the following factory method. This method creates the most appropriate collection implementation class for storing Source elements.
Collection<Source> object =createSources();
Source instances can be serialized as an XML document. This XML document can also be used to recreate a Source object. The following XML document shows an example Source in XML form.
<?xml version="1.0" encoding="UTF-8"?>
 <content:BufferSource xmlns:content="http://xmlns.oracle.com/irm/content">
    <buffer>VW5pdCBUZXN0aW5n</buffer>
    <mimeType>text/plain</mimeType>
</content:BufferSource>
SealingOperations| Method Summary | |
|---|---|
 void | 
close()Close the source's input stream.  | 
 ContentType | 
getContentType()The content format/type information.  | 
 InputStream | 
getInputStream()An input stream to the content source.  | 
 long | 
getSize()The file size if known.  | 
| Method Detail | 
|---|
InputStream getInputStream()
long getSize()
ContentType getContentType()
void close()
           throws IOException
IOException - if there is an input/output error closing the stream.
  | 
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||