public class Attachment extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Attachment.Builder
Builder object.
|
| Constructor and Description |
|---|
Attachment(Attachment.Builder builder)
Creates new object.
|
| Modifier and Type | Method and Description |
|---|---|
static Attachment |
create(String name,
String mime,
byte[] buf)
Creates new attachment.
|
boolean |
equals(Object obj) |
byte[] |
getBuf()
Returns data buffer.
|
String |
getMime()
Returns mime type.
|
String |
getName()
Returns name.
|
int |
hashCode() |
String |
toString() |
public Attachment(Attachment.Builder builder)
builder - builder objectpublic byte[] getBuf()
public String getName()
public String getMime()
public static Attachment create(String name, String mime, byte[] buf)
name - namemime - mime typebuf - data bufferCopyright © 2016. All rights reserved.