|
||||||||||
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 FormField 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 Attachment
public byte[] getData()
getData
in interface Attachment
public void setDataFromStream(InputStream stream) throws IOException
Attachment
setDataFromStream
in interface Attachment
IOException
public InputStream getDataAsStream()
getDataAsStream
in interface Attachment
public void setMimeType(String type)
Attachment
setMimeType
in interface Attachment
public String getMimeType()
getMimeType
in interface Attachment
public void writeToFile(File f) throws IOException
Attachment
writeToFile
in interface Attachment
IOException
public void writeToStream(OutputStream stream) throws IOException
Attachment
writeToStream
in interface Attachment
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |