net.ezcontent.impl.eos
Class Attachment

java.lang.Object
  extended bynet.ezcontent.impl.eos.base.BaseAttachment
      extended bynet.ezcontent.impl.eos.Attachment
All Implemented Interfaces:
Attachment, Serializable

public class Attachment
extends BaseAttachment
implements Attachment

This is the object class that relates to the Attachment table. Any customizations belong here. Implementa la interfaz Attachment.

See Also:
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

Attachment

public Attachment()

Attachment

public Attachment(int attID)
Constructor for primary key

Method Detail

setData

public void setData(byte[] data)
Description copied from interface: Attachment
Los datos del archivo.

Specified by:
setData in interface Attachment

getData

public byte[] getData()
Specified by:
getData in interface Attachment

setDataFromStream

public void setDataFromStream(InputStream stream)
                       throws IOException
Description copied from interface: Attachment
Los datos del archivo, manejados como stream.

Specified by:
setDataFromStream in interface Attachment
Throws:
IOException

getDataAsStream

public InputStream getDataAsStream()
Specified by:
getDataAsStream in interface Attachment

setMimeType

public void setMimeType(String type)
Description copied from interface: Attachment
El tipo MIME del archivo.

Specified by:
setMimeType in interface Attachment

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface Attachment

writeToFile

public void writeToFile(File f)
                 throws IOException
Description copied from interface: Attachment
Escribe el contenido del archivo al archivo indicado.

Specified by:
writeToFile in interface Attachment
Throws:
IOException

writeToStream

public void writeToStream(OutputStream stream)
                   throws IOException
Description copied from interface: Attachment
Escribe el contenido del archivo al stream indicado.

Specified by:
writeToStream in interface Attachment
Throws:
IOException