|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.encoding.MimeMultipartParser.PartAttachment
static class MimeMultipartParser.PartAttachment
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.sun.xml.ws.api.message.AttachmentEx |
|---|
AttachmentEx.MimeHeader |
| Field Summary | |
|---|---|
(package private) byte[] |
buf
|
(package private) org.jvnet.mimepull.MIMEPart |
part
|
| Constructor Summary | |
|---|---|
MimeMultipartParser.PartAttachment(org.jvnet.mimepull.MIMEPart part)
|
|
| Method Summary | |
|---|---|
byte[] |
asByteArray()
Gets the attachment as an exact-length byte array. |
javax.activation.DataHandler |
asDataHandler()
Gets the attachment as a DataHandler. |
InputStream |
asInputStream()
Obtains this attachment as an InputStream. |
Source |
asSource()
Gets the attachment as a Source. |
String |
getContentId()
Content ID of the attachment. |
String |
getContentType()
Gets the MIME content-type of this attachment. |
Iterator<AttachmentEx.MimeHeader> |
getMimeHeaders()
Iterator of custom MIME headers associated with this attachment |
void |
writeTo(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final org.jvnet.mimepull.MIMEPart part
byte[] buf
| Constructor Detail |
|---|
MimeMultipartParser.PartAttachment(org.jvnet.mimepull.MIMEPart part)
| Method Detail |
|---|
@NotNull public String getContentId()
Attachment
getContentId in interface Attachment@NotNull public String getContentType()
Attachment
getContentType in interface Attachmentpublic byte[] asByteArray()
Attachment
asByteArray in interface Attachmentpublic javax.activation.DataHandler asDataHandler()
AttachmentDataHandler.
asDataHandler in interface Attachmentpublic Source asSource()
AttachmentSource.
Note that there's no guarantee that the attachment is actually an XML.
asSource in interface Attachmentpublic InputStream asInputStream()
AttachmentInputStream.
asInputStream in interface Attachment
public void writeTo(OutputStream os)
throws IOException
Attachment
writeTo in interface AttachmentIOException
public void writeTo(javax.xml.soap.SOAPMessage saaj)
throws javax.xml.soap.SOAPException
AttachmentSOAPMessage.
writeTo in interface Attachmentjavax.xml.soap.SOAPExceptionpublic Iterator<AttachmentEx.MimeHeader> getMimeHeaders()
AttachmentEx
getMimeHeaders in interface AttachmentEx
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||