src/share/jaxws_classes/javax/xml/soap/AttachmentPart.java
Print this page
rev 507 : 8047724: @since tag cleanup in jaxws
Reviewed-by:
*** 112,121 ****
--- 112,123 ----
* The method <code>clearContent</code> removes all the content from an
* <code>AttachmentPart</code> object but does not affect its header information.
* <PRE>
* ap1.clearContent();
* </PRE>
+ *
+ * @since 1.6
*/
public abstract class AttachmentPart {
/**
* Returns the number of bytes in this <code>AttachmentPart</code>
*** 188,198 ****
*
* @throws SOAPException if there is no content set into this
* <code>AttachmentPart</code> object or if there was a data
* transformation error.
*
! * @since SAAJ 1.3
* @see #getRawContentBytes
*/
public abstract InputStream getRawContent() throws SOAPException;
/**
--- 190,200 ----
*
* @throws SOAPException if there is no content set into this
* <code>AttachmentPart</code> object or if there was a data
* transformation error.
*
! * @since 1.6, SAAJ 1.3
* @see #getRawContentBytes
*/
public abstract InputStream getRawContent() throws SOAPException;
/**
*** 206,216 ****
*
* @throws SOAPException if there is no content set into this
* <code>AttachmentPart</code> object or if there was a data
* transformation error.
*
! * @since SAAJ 1.3
*/
public abstract byte[] getRawContentBytes() throws SOAPException;
/**
* Returns an <code>InputStream</code> which can be used to obtain the
--- 208,218 ----
*
* @throws SOAPException if there is no content set into this
* <code>AttachmentPart</code> object or if there was a data
* transformation error.
*
! * @since 1.6, SAAJ 1.3
*/
public abstract byte[] getRawContentBytes() throws SOAPException;
/**
* Returns an <code>InputStream</code> which can be used to obtain the
*** 223,233 ****
*
* @throws SOAPException if there is no content set into this
* <code>AttachmentPart</code> object or if there was a data
* transformation error.
*
! * @since SAAJ 1.3
*/
public abstract InputStream getBase64Content() throws SOAPException;
/**
* Sets the content of this attachment part to that of the given
--- 225,235 ----
*
* @throws SOAPException if there is no content set into this
* <code>AttachmentPart</code> object or if there was a data
* transformation error.
*
! * @since 1.6, SAAJ 1.3
*/
public abstract InputStream getBase64Content() throws SOAPException;
/**
* Sets the content of this attachment part to that of the given
*** 265,275 ****
* @param contentType the value to set into the <code>Content-Type</code>
* header
*
* @exception SOAPException if an there is an error in setting the content
* @exception NullPointerException if <code>content</code> is null
! * @since SAAJ 1.3
*/
public abstract void setRawContent(InputStream content, String contentType) throws SOAPException;
/**
* Sets the content of this attachment part to that contained by the
--- 267,277 ----
* @param contentType the value to set into the <code>Content-Type</code>
* header
*
* @exception SOAPException if an there is an error in setting the content
* @exception NullPointerException if <code>content</code> is null
! * @since 1.6, SAAJ 1.3
*/
public abstract void setRawContent(InputStream content, String contentType) throws SOAPException;
/**
* Sets the content of this attachment part to that contained by the
*** 283,293 ****
* @param offset the offset in the byte array of the content
* @param len the number of bytes that form the content
*
* @exception SOAPException if an there is an error in setting the content
* or content is null
! * @since SAAJ 1.3
*/
public abstract void setRawContentBytes(
byte[] content, int offset, int len, String contentType)
throws SOAPException;
--- 285,295 ----
* @param offset the offset in the byte array of the content
* @param len the number of bytes that form the content
*
* @exception SOAPException if an there is an error in setting the content
* or content is null
! * @since 1.6, SAAJ 1.3
*/
public abstract void setRawContentBytes(
byte[] content, int offset, int len, String contentType)
throws SOAPException;
*** 307,317 ****
* header
*
* @exception SOAPException if an there is an error in setting the content
* @exception NullPointerException if <code>content</code> is null
*
! * @since SAAJ 1.3
*/
public abstract void setBase64Content(
InputStream content, String contentType) throws SOAPException;
--- 309,319 ----
* header
*
* @exception SOAPException if an there is an error in setting the content
* @exception NullPointerException if <code>content</code> is null
*
! * @since 1.6, SAAJ 1.3
*/
public abstract void setBase64Content(
InputStream content, String contentType) throws SOAPException;