| 
Oracle9i Business Components for Java InterMedia API Reference Oracle9i JDeveloper (9.0.4) B10394-01  | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.ord.im.OrdFileSource
An implementation class of OrdContentSource to support using a file as the content source for deferred loading.
| Constructor Summary | |
OrdFileSource(java.lang.String fileName)Constructs an OrdFileSource instance. | |
| Method Summary | |
 void | 
deleteFileInRelease()Indicates the file should be deleted when release() is invoked. | 
 int | 
getContentLength()Gets the length of the file.  | 
 java.lang.String | 
getFileName()Gets the file name which refers to a file containing the content to be loaded.  | 
 java.io.InputStream | 
getInputStream()Gets an InputStream object pointing to the file. | 
 java.lang.String | 
getMimeType()Gets the MIME type of the content. | 
 boolean | 
isDeleteFileInRelease()Returns whether the file will be deleted when release() is invoked. | 
 void | 
release()Releases the resources used by the content source.  | 
 void | 
setFileName(java.lang.String fileName)Sets a file name which refers to a file containing the content to be loaded.  | 
 void | 
setMimeType(java.lang.String mimeType)Sets the MIME type of the content. | 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public OrdFileSource(java.lang.String fileName)
OrdFileSource instance.fileName - a file name which refers to a file containing the content to be loaded| Method Detail | 
public void setFileName(java.lang.String fileName)
fileName - a file name stringpublic java.lang.String getFileName()
public java.io.InputStream getInputStream()
                                   throws java.io.IOException
InputStream object pointing to the file.getInputStream in interface OrdContentSourceFileInputStream objectjava.io.IOException
public int getContentLength()
                     throws java.io.IOException
getContentLength in interface OrdContentSourcejava.io.IOExceptionpublic void setMimeType(java.lang.String mimeType)
MIME type of the content.mimeType - the MIME type of the contentpublic java.lang.String getMimeType()
MIME type of the content. If the MIME type was not set by a previous setMimeType(String) call, it returns null.getMimeType in interface OrdContentSourceMIME typepublic void deleteFileInRelease()
release() is invoked.public boolean isDeleteFileInRelease()
release() is invoked.public void release()
OrdContentSourcerelease in interface OrdContentSource 
  | 
Oracle9i Business Components for Java InterMedia API Reference Oracle9i JDeveloper (9.0.4) B10394-01  | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||