public abstract InputStream getRawContent () throws SOAPException

Gets the content of this AttachmentPart object as an InputStream as if a call had been made to getContent and no DataContentHandler had been registered for the content-type of this AttachmentPart.

Note that reading from the returned InputStream would result in consuming the data in the stream. It is the responsibility of the caller to reset the InputStream appropriately before calling a Subsequent API. If a copy of the raw attachment content is required then the getRawContentBytes API should be used instead.

Returns:  an InputStream from which the raw data contained by the AttachmentPart can be accessed.

Exceptions:
SOAPException    if there is no content set into this AttachmentPart object or if there was a data transformation error.

See also:
getRawContentBytes

Since:  SAAJ 1.3