| 
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 | |||||||||
java.lang.Object
  
oracle.irm.engine.content.source.FileSourceFactory
public final class FileSourceFactory
File Source factory. This class provides methods for creating new instances of FileSource objects.
| Method Summary | |
|---|---|
static FileSource | 
createFileSource(File file)Create a file source from a file.  | 
static FileSource | 
createFileSource(String path)Create a file source from a path.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static FileSource createFileSource(File file)
                                   throws UnsupportedContentTypeException,
                                          IOException
file - the file. The file should contain unsealed data.UnsupportedContentTypeException - unsupported file type.IOException - if there is an input/output error accessing the file.
public static FileSource createFileSource(String path)
                                   throws UnsupportedContentTypeException,
                                          IOException
path - the file path.UnsupportedContentTypeException - unsupported file type.IOException - if there is an input/output error accessing the file.
  | 
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 | |||||||||