|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.MAttachmentEntry
public class MAttachmentEntry
Individual Attachment Entry of MAttachment
| Field Summary | |
|---|---|
protected CLogger |
log
Logger |
| Constructor Summary | |
|---|---|
MAttachmentEntry(String name,
byte[] data)
Attachment Entry |
|
MAttachmentEntry(String name,
byte[] data,
int index)
Attachment Entry |
|
| Method Summary | |
|---|---|
void |
dump()
Dump Data |
String |
getContentType()
Get Content (Mime) Type |
byte[] |
getData()
|
File |
getFile()
Get File with default name |
File |
getFile(File file)
Get File |
File |
getFile(String fileName)
Get File with name |
int |
getIndex()
Get Attachment Index |
InputStream |
getInputStream()
Get Data as Input Stream |
String |
getName()
|
boolean |
isGraphic()
Isattachment entry a Graphic |
boolean |
isPDF()
Is attachment entry a PDF |
void |
setData(byte[] data)
|
void |
setName(String name)
|
String |
toString()
To String |
String |
toStringX()
To String Extended |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected CLogger log
| Constructor Detail |
|---|
public MAttachmentEntry(String name,
byte[] data,
int index)
name - namedata - binary dataindex - optional index
public MAttachmentEntry(String name,
byte[] data)
name - namedata - binary data| Method Detail |
|---|
public byte[] getData()
public void setData(byte[] data)
data - The data to set.public String getName()
public void setName(String name)
name - The name to set.public int getIndex()
public String toString()
toString in class Objectpublic String toStringX()
public void dump()
public File getFile()
public File getFile(String fileName)
fileName - optional file name
public File getFile(File file)
file - out file
public boolean isPDF()
public boolean isGraphic()
public String getContentType()
public InputStream getInputStream()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||