Java javax.xml.soap AttachmentPart fields, constructors, methods, implement or subclass

Example usage for Java javax.xml.soap AttachmentPart fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.xml.soap AttachmentPart.

The text is from its open source code.

Subclass

javax.xml.soap.AttachmentPart has subclasses.
Click this link to see all its subclasses.

Method

voidaddMimeHeader(String name, String value)
Adds a MIME header with the specified name and value to this AttachmentPart object.
voidclearContent()
Clears out the content of this AttachmentPart object.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
IteratorgetAllMimeHeaders()
Retrieves all the headers for this AttachmentPart object as an iterator over the MimeHeader objects.
InputStreamgetBase64Content()
Returns an InputStream which can be used to obtain the content of AttachmentPart as Base64 encoded character data, this method would base64 encode the raw bytes of the attachment and return.
ObjectgetContent()
Gets the content of this AttachmentPart object as a Java object.
StringgetContentId()
Gets the value of the MIME header whose name is "Content-ID".
StringgetContentType()
Gets the value of the MIME header whose name is "Content-Type".
DataHandlergetDataHandler()
Gets the DataHandler object for this AttachmentPart object.
byte[]getRawContentBytes()
Gets the content of this AttachmentPart object as a byte[] array as if a call had been made to getContent and no DataContentHandler had been registered for the content-type of this AttachmentPart .
intgetSize()
Returns the number of bytes in this AttachmentPart object.
voidsetBase64Content(InputStream content, String contentType)
Sets the content of this attachment part from the Base64 source InputStream and sets the value of the Content-Type header to the value contained in contentType , This method would first decode the base64 input and write the resulting raw bytes to the attachment.
voidsetContent(Object object, String contentType)
Sets the content of this attachment part to that of the given Object and sets the value of the Content-Type header to the given type.
voidsetContentId(String contentId)
Sets the MIME header whose name is "Content-ID" with the given value.
voidsetContentType(String contentType)
Sets the MIME header whose name is "Content-Type" with the given value.
voidsetDataHandler(DataHandler dataHandler)
Sets the given DataHandler object as the data handler for this AttachmentPart object.
voidsetMimeHeader(String name, String value)
Changes the first header entry that matches the given name to the given value, adding a new header if no existing header matches.