|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.collab.InputStreamAttachmentSource
An IAttachmentSource
that gets its data from an InputStream
.
Constructor Summary | |
InputStreamAttachmentSource(java.io.InputStream input,
java.lang.String sName,
int iSize)
Constructor. |
Method Summary | |
java.io.InputStream |
getInputStream()
Gets the input stream for this attachment source. |
java.lang.String |
getName()
Gets the name of the attachment source. |
int |
getSize()
Gets the size of the attachment in bytes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InputStreamAttachmentSource(java.io.InputStream input, java.lang.String sName, int iSize)
Method Detail |
public java.io.InputStream getInputStream() throws java.io.IOException
IAttachmentSource
IAttachmentSource.getSize()
returns -1
) then it must be safe to
call this method multiple times so that we can read the stream first to
get a size.getInputStream
in interface IAttachmentSource
com.compoze.collab.IAttachmentSource
InputStream
to the attachment data
(not null
)CollaborationException
- if there was a problem getting
the stream from the sourcejava.io.IOException
- if an I/O error occurredpublic java.lang.String getName()
IAttachmentSource
getName
in interface IAttachmentSource
com.compoze.collab.IAttachmentSource
null
)CollaborationException
- if there was a problem getting
the namepublic int getSize()
IAttachmentSource
getSize
in interface IAttachmentSource
com.compoze.collab.IAttachmentSource
-1
if the size is
not known, in which case it must be safe to call
IAttachmentSource.getInputStream()
multiple times so that we can
read the stream first to get a sizeCollaborationException
- if there was a problem getting
the size
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |