|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Message defines the interface of messages sent or received to or from a endpoint and pipes. Applications are expected to implement this class in order to exchange messages.
EndpointAddress
,
InputPipe
,
OutputPipe
,
Pipe
Method Summary | |
Message |
dup()
Duplicates the message. |
java.util.Enumeration |
getNames()
Returns an Enumeation of all the available chunks of data in the message |
int |
getSize(java.lang.String atag)
Get the size of a particular tag's data in the message. |
java.io.InputStream |
pop(java.lang.String name)
Gets a chunk of data associated with the name |
void |
push(java.lang.String name,
java.io.InputStream inputStream)
Push a chunk of data into the message. |
Method Detail |
public void push(java.lang.String name, java.io.InputStream inputStream) throws java.io.IOException
name
- is the name of the chunk of datainputStream
- is an inputStream to the data to be pushed.public java.io.InputStream pop(java.lang.String name) throws java.io.IOException
name
- contains the name of the chunk of data to getpublic int getSize(java.lang.String atag)
atag
- the name of the tag whose size to getpublic java.util.Enumeration getNames()
public Message dup() throws java.io.IOException
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |