|
Oracle Fusion Middleware interMedia Domains Java API Reference for Oracle ADF Business Components 11g Release 1 (11.1.1.4.0) E10656-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.ord.im.OrdByteArraySource
public class OrdByteArraySource
An implementation class of OrdContentSource
to support using a byte array as the content source for deferred
loading.
| Constructor Summary | |
|---|---|
OrdByteArraySource(byte[] bytes)
Constructs an OrdByteArraySource instance. |
|
| Method Summary | |
|---|---|
byte[] |
getByteArray()
Gets a byte array containing the content to be loaded. |
int |
getContentLength()
Gets the length of the content. |
java.io.InputStream |
getInputStream()
Gets an InputStream object from the byte array. |
java.lang.String |
getMimeType()
Gets the MIME type information for the content. |
void |
release()
Releases the resources used by the content source. |
void |
setByteArray(byte[] bytes)
Sets a byte array containing the content to be loaded. |
void |
setMimeType(java.lang.String mimeType)
Sets the MIME type information for the content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrdByteArraySource(byte[] bytes)
OrdByteArraySource instance.
bytes - a byte array containing the content to be loaded| Method Detail |
|---|
public void setByteArray(byte[] bytes)
bytes - a byte array containing the content to be loadedpublic byte[] getByteArray()
public java.io.InputStream getInputStream()
throws java.io.IOException
InputStream object from the byte array.
getInputStream in interface OrdContentSourceByteArrayInputStream object
java.io.IOException
public int getContentLength()
throws java.io.IOException
getContentLength in interface OrdContentSourcejava.io.IOExceptionpublic void setMimeType(java.lang.String mimeType)
MIME type information for the content.
mimeType - the MIME type informationpublic java.lang.String getMimeType()
MIME type information for the content.
Returns null if this information was not set by
a previous setMimeType(String) call.
getMimeType in interface OrdContentSourceMIME type informationpublic void release()
OrdContentSource
release in interface OrdContentSource
|
Oracle Fusion Middleware interMedia Domains Java API Reference for Oracle ADF Business Components 11g Release 1 (11.1.1.4.0) E10656-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||