|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attachment
Attachment.
Method Summary | |
---|---|
byte[] |
asByteArray()
Gets the attachment as an exact-length byte array. |
javax.activation.DataHandler |
asDataHandler()
Gets the attachment as a DataHandler . |
java.io.InputStream |
asInputStream()
Obtains this attachment as an InputStream . |
javax.xml.transform.Source |
asSource()
Gets the attachment as a Source . |
java.lang.String |
getContentId()
Content ID of the attachment. |
java.lang.String |
getContentType()
Gets the MIME content-type of this attachment. |
void |
writeTo(java.io.OutputStream os)
Writes the contents of the attachment into the given stream. |
void |
writeTo(javax.xml.soap.SOAPMessage saaj)
Writes this attachment to the given SOAPMessage . |
Method Detail |
---|
@NotNull java.lang.String getContentId()
java.lang.String getContentType()
byte[] asByteArray()
javax.activation.DataHandler asDataHandler()
DataHandler
.
javax.xml.transform.Source asSource()
Source
.
Note that there's no guarantee that the attachment is actually an XML.
java.io.InputStream asInputStream()
InputStream
.
void writeTo(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
void writeTo(javax.xml.soap.SOAPMessage saaj) throws javax.xml.soap.SOAPException
SOAPMessage
.
javax.xml.soap.SOAPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |