|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ezcontent.impl.eos.base.BaseAttachment
net.ezcontent.impl.eos.Attachment
This is the object class that relates to the Attachment table. Any customizations belong here. Implementa la interfaz Attachment.
Attachment,
Serialized Form| Field Summary |
| Fields inherited from class net.ezcontent.impl.eos.base.BaseAttachment |
|
| Constructor Summary | |
Attachment()
|
|
Attachment(int attID)
Constructor for primary key |
|
| Method Summary | |
byte[] |
getData()
|
InputStream |
getDataAsStream()
|
String |
getMimeType()
|
void |
setData(byte[] data)
Los datos del archivo. |
void |
setDataFromStream(InputStream stream)
Los datos del archivo, manejados como stream. |
void |
setMimeType(String type)
El tipo MIME del archivo. |
void |
writeToFile(File f)
Escribe el contenido del archivo al archivo indicado. |
void |
writeToStream(OutputStream stream)
Escribe el contenido del archivo al stream indicado. |
| Methods inherited from class net.ezcontent.impl.eos.base.BaseAttachment |
equals, getAttID, getBlob, getFilename, getName, getOwner, hashCode, setAttID, setBlob, setFilename, setName, setOwner |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.ezcontent.document.Attachment |
getFilename, getName, setFilename, setName |
| Constructor Detail |
public Attachment()
public Attachment(int attID)
| Method Detail |
public void setData(byte[] data)
Attachment
setData in interface Attachmentpublic byte[] getData()
getData in interface Attachment
public void setDataFromStream(InputStream stream)
throws IOException
Attachment
setDataFromStream in interface AttachmentIOExceptionpublic InputStream getDataAsStream()
getDataAsStream in interface Attachmentpublic void setMimeType(String type)
Attachment
setMimeType in interface Attachmentpublic String getMimeType()
getMimeType in interface Attachment
public void writeToFile(File f)
throws IOException
Attachment
writeToFile in interface AttachmentIOException
public void writeToStream(OutputStream stream)
throws IOException
Attachment
writeToStream in interface AttachmentIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||