@Deprecated public class OrdFileSource extends java.lang.Object implements OrdContentSource
| Constructor and Description |
|---|
OrdFileSource(java.lang.String fileName)
Deprecated.
Constructs an
OrdFileSource instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFileInRelease()
Deprecated.
Indicates the file should be deleted when
release()
is invoked. |
int |
getContentLength()
Deprecated.
Gets the length of the file.
|
java.lang.String |
getFileName()
Deprecated.
Gets the file name which refers to a file containing the content
to be loaded.
|
java.io.InputStream |
getInputStream()
Deprecated.
Gets an
InputStream object pointing to the file. |
java.lang.String |
getMimeType()
Deprecated.
Gets the
MIME type of the content. |
boolean |
isDeleteFileInRelease()
Deprecated.
Returns whether the file will be deleted when
release()
is invoked. |
void |
release()
Deprecated.
Releases the resources used by the content source.
|
void |
setFileName(java.lang.String fileName)
Deprecated.
Sets a file name which refers to a file containing the
content to be loaded.
|
void |
setMimeType(java.lang.String mimeType)
Deprecated.
Sets the
MIME type of the content. |
public OrdFileSource(java.lang.String fileName)
OrdFileSource instance.fileName - a file name which refers to a file containing
the content to be loadedpublic 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.IOExceptionpublic 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