|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.compoze.collab.InputStreamAttachmentSource
public class InputStreamAttachmentSource
An IAttachmentSource that gets its data from an InputStream.
| Constructor Summary | |
|---|---|
InputStreamAttachmentSource(InputStream input,
String sName,
int iSize)
Constructor. |
|
| Method Summary | |
|---|---|
InputStream |
getInputStream()
Gets the input stream for this attachment source. |
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(InputStream input,
String sName,
int iSize)
| Method Detail |
|---|
public InputStream getInputStream()
throws IOException
IAttachmentSourceIAttachmentSource.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 IAttachmentSourceInputStream to the attachment data
(not null)
IOException - if an I/O error occurredpublic String getName()
IAttachmentSource
getName in interface IAttachmentSourcenull)public int getSize()
IAttachmentSource
getSize in interface 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 size
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||