|
Java API Reference for Oracle Infrastructure Web Services 11 Release 1 (11.1.1) E10654-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.webservices.attachments.AttachmentFactory
public abstract class AttachmentFactory
AttachmentFactory is used to create Attachment and Attachments objects for streaming attachments.
| Constructor Summary | |
|---|---|
AttachmentFactory() |
|
| Method Summary | |
|---|---|
abstract Attachment |
createAttachment(String id, DataHandler dataHandler)Create an Attachment from a DataHandler. |
abstract Attachment |
createAttachment(String id, String contentType, InputStream attachmentStream)Create and Attachment from an InputStream. |
abstract Attachments |
createAttachments()Create an Attachments object. |
static AttachmentFactory |
newInstance()Get a new instance of the AttachmentFactory. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttachmentFactory()
| Method Detail |
|---|
public static AttachmentFactory newInstance()
public abstract Attachments createAttachments()
public abstract Attachment createAttachment(String id,
DataHandler dataHandler)
id - The Attachment ID. This corresponds to the Content-ID MIME headerdataHandler - The DataHandler representing the attachment data
public abstract Attachment createAttachment(String id,
String contentType,
InputStream attachmentStream)
id - The Attachment ID. This corresponds to the Content-ID MIME headercontentType - The Content-Type of the Attachment (e.g. text/plain, image/jpeg)attachmentStream - An InputStream containing the binary data for the attachment
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||