|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.datamodel.InMemoryAttachment
public class InMemoryAttachment
default in-memory implementation of Attachments. See SMILA Data Model for details.
| Constructor Summary | |
|---|---|
InMemoryAttachment(java.lang.String name,
byte[] content)
create instance. |
|
| Method Summary | |
|---|---|
void |
dispose()
called to denote that this attachment is not needed anymore and used resources can be released. |
byte[] |
getAsBytes()
get attachment content as a byte array. |
byte[] |
getAsBytes(int length)
get start of attachment content as byte[]. |
java.io.InputStream |
getAsStream()
get attachment content for streaming. |
java.lang.String |
getName()
|
long |
size()
get size of attachments. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryAttachment(java.lang.String name,
byte[] content)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface Attachmentpublic long size()
Attachment
size in interface Attachmentpublic byte[] getAsBytes()
Attachment
getAsBytes in interface Attachmentpublic byte[] getAsBytes(int length)
Attachment
getAsBytes in interface Attachmentpublic java.io.InputStream getAsStream()
Attachment
getAsStream in interface Attachmentpublic void dispose()
Attachment
dispose in interface Attachmentpublic java.lang.String toString()
toString in class java.lang.Object
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||