|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.ebusiness.FileAttachment
This class represents a file attachment.
Constructor Summary | |
|
FileAttachment()
Constructor. |
protected |
FileAttachment(long lAttachID,
java.lang.String sName,
int iSize)
Constructor. |
Method Summary | |
java.lang.String |
getContentType()
Gets the MIME type of the file attachment. |
java.lang.String |
getFilename()
Gets the filename of the file attachment. |
long |
getID()
Gets the id of the file attachment. |
abstract java.io.InputStream |
getInputStream()
Gets the input stream for the file attachment data. |
int |
getSize()
Gets the size (in bytes) of the file attachment. |
java.lang.String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FileAttachment()
protected FileAttachment(long lAttachID, java.lang.String sName, int iSize)
lAttachID
- the file attachment idsName
- the filenameiSize
- the size of the file attachment (in bytes)Method Detail |
public java.lang.String getFilename()
public long getID()
public int getSize()
public java.lang.String getContentType()
application/octet-stream
is returned.public abstract java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- if an error occurs creating the input streampublic java.lang.String toString()
toString
in class java.lang.Object
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |