public class AttachmentImpl extends Object implements com.sun.xml.ws.api.message.Attachment
| Constructor and Description |
|---|
AttachmentImpl(String contentId,
byte[] data,
String mimeType) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asByteArray() |
DataHandler |
asDataHandler() |
InputStream |
asInputStream() |
Source |
asSource() |
String |
getContentId() |
String |
getContentType() |
void |
writeTo(OutputStream os) |
void |
writeTo(SOAPMessage saaj) |
public String getContentId()
getContentId in interface com.sun.xml.ws.api.message.Attachmentpublic String getContentType()
getContentType in interface com.sun.xml.ws.api.message.Attachmentpublic byte[] asByteArray()
asByteArray in interface com.sun.xml.ws.api.message.Attachmentpublic DataHandler asDataHandler()
asDataHandler in interface com.sun.xml.ws.api.message.Attachmentpublic Source asSource()
asSource in interface com.sun.xml.ws.api.message.Attachmentpublic InputStream asInputStream()
asInputStream in interface com.sun.xml.ws.api.message.Attachmentpublic void writeTo(OutputStream os) throws IOException
writeTo in interface com.sun.xml.ws.api.message.AttachmentIOExceptionpublic void writeTo(SOAPMessage saaj) throws SOAPException
writeTo in interface com.sun.xml.ws.api.message.AttachmentSOAPExceptionCopyright © 2005–2018 Oracle Corporation. All rights reserved.