@Deprecated public class OrdByteArraySource extends java.lang.Object implements OrdContentSource
| Constructor and Description |
|---|
OrdByteArraySource(byte[] bytes)
Deprecated.
Constructs an
OrdByteArraySource instance. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getByteArray()
Deprecated.
Gets a byte array containing the content to be loaded.
|
int |
getContentLength()
Deprecated.
Gets the length of the content.
|
java.io.InputStream |
getInputStream()
Deprecated.
Gets an
InputStream object from the byte array. |
java.lang.String |
getMimeType()
Deprecated.
Gets the
MIME type information for the content. |
void |
release()
Deprecated.
Releases the resources used by the content source.
|
void |
setByteArray(byte[] bytes)
Deprecated.
Sets a byte array containing the content to be loaded.
|
void |
setMimeType(java.lang.String mimeType)
Deprecated.
Sets the
MIME type information for the content. |
public OrdByteArraySource(byte[] bytes)
OrdByteArraySource instance.bytes - a byte array containing the content to be loadedpublic 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 objectjava.io.IOExceptionpublic 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()
OrdContentSourcerelease in interface OrdContentSource