```
public interface IAttachment
```

Represents a common attachment interface
## Methods

| Method | Description |
| --- | --- |
| [getName()](#getName--) | Gets or sets an attachment name |
| [save(OutputStream stream)](#save-java.io.OutputStream-) | Saves an attachment to stream |
| [save(String fileName)](#save-java.lang.String-) | Saves attachment to file |
| [setName(String value)](#setName-java.lang.String-) | Gets or sets an attachment name |
### getName() {#getName--}
```
public abstract String getName()
```


Gets or sets an attachment name

**Returns:**
java.lang.String
### save(OutputStream stream) {#save-java.io.OutputStream-}
```
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) {#save-java.lang.String-}
```
public abstract void save(String fileName)
```


Saves attachment to file

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fileName | java.lang.String | A file name |

### setName(String value) {#setName-java.lang.String-}
```
public abstract void setName(String value)
```


Gets or sets an attachment name

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

