|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the MessageTag interface used by the implementation on endpoint messages.
Method Summary | |
java.io.InputStream |
getInputStream()
returns an InputStream to the data of the tag. |
java.lang.String |
getTag()
Get the String representation of the tag. |
java.io.InputStream |
getWireFormatInputStream()
|
void |
setInputStream(java.io.InputStream thisStream)
This method needs to be provided in order to implement the MessageTag interface, but since the stream has been set at the construction of this object, it cannot be changed later on. |
void |
setTag(java.lang.String thisTag)
set this MessagesTag with the tag. |
void |
share()
This method causes the contents of the tag to be held locally by the tag The result of which is that you may call getInputStream and getWireFormatInputStream more than a single time. |
Method Detail |
public void setTag(java.lang.String thisTag) throws java.io.IOException
tag
- String containing of the tagpublic java.lang.String getTag()
public void setInputStream(java.io.InputStream thisStream) throws java.io.IOException
thisStream
- InputStream provided by the caller.public java.io.InputStream getInputStream()
public java.io.InputStream getWireFormatInputStream()
public void share()
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |