public class Attachment
extends java.lang.Object
Constructor and Description |
---|
Attachment()
Default constructor
|
Attachment(java.lang.String contentID,
java.lang.String contentType,
java.io.InputStream content)
Constructs with an ID, content-type, and content.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getContent()
Returns the content of the attachment.
|
java.lang.String |
getContentID()
Returns the ID of the attachment.
|
java.lang.String |
getContentType()
Returns the content-type of the attachment.
|
void |
setContent(java.io.InputStream content)
Changes the content of the attachment.
|
void |
setContentID(java.lang.String contentID)
Changes the ID of the attachment.
|
void |
setContentType(java.lang.String contentType)
Changes the content-type of the attachment.
|
public Attachment()
public Attachment(java.lang.String contentID, java.lang.String contentType, java.io.InputStream content)
contentID
- ID of the attachment.contentType
- Content-type of the attachment.content
- InputStream to the content of the attachment.public java.lang.String getContentID()
public void setContentID(java.lang.String contentID)
contentID
- String identifier of the attachment.public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType
- String content-type of the attachment.public java.io.InputStream getContent()
public void setContent(java.io.InputStream content)
content
- InputStream to the content of the attachment.?? 2022 Perforce Software, All rights reserved
This software is the confidential and proprietary information of Perforce, Inc. and is subject to copyright protection under laws of the United States of America and other countries. The use of this software should be in accordance with the license agreement terms you entered into with Perforce, Inc.