IAttachment
public interface IAttachment
Represents a common attachment interface
Methods
| Method | Description |
|---|---|
| getName() | Gets or sets an attachment name |
| save(OutputStream stream) | Saves an attachment to stream |
| save(String fileName) | Saves attachment to file |
| setName(String value) | Gets or sets an attachment name |
getName()
public abstract String getName()
Gets or sets an attachment name
Returns: java.lang.String
save(OutputStream stream)
public abstract void save(OutputStream stream)
Saves an attachment to stream
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream | A stream to save to |
save(String fileName)
public abstract void save(String fileName)
Saves attachment to file
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileName | java.lang.String | A file name |
setName(String value)
public abstract void setName(String value)
Gets or sets an attachment name
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |