|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.panama.messaging.common.MultiPart
This class is a container class for the parts of a message.
MessagePart
, Serialized FormConstructor Summary | |
MultiPart() Constructor. |
Method Summary | |
void |
addMessagePart(MessagePart part) Add a message part to this multipart. |
void |
addMessagePart(MessagePart part, int index) Add a message part to this multipart at a given index. |
boolean |
equals(java.lang.Object other) Checks equality of two MultiPart objects. |
MessagePart |
getMessagePart(int index) Get the specified message part. |
int |
getPartCount() Get the number of part count. |
int |
hashCode() Generates and return hash code for the instance |
void |
readExternal(java.io.ObjectInput oi) Read a multipart instance from a stream. |
void |
removeMessagePart(int index) Remove a specified message part. |
void |
removeMessagePart(MessagePart part) Remove a specified message part. |
java.lang.String |
toString() Overrides the default toString implementation. |
void |
writeExternal(java.io.ObjectOutput oo) Write a multipart instance to a stream. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MultiPart()
Method Detail |
public void addMessagePart(MessagePart part)
part
- message part to add.public void addMessagePart(MessagePart part, int index)
part
- message part to add.index
- the position to add.public boolean equals(java.lang.Object other)
other
- MultiPart object to be tested for equality with "this" instance.public MessagePart getMessagePart(int index)
index
- the index of the part to get.public int getPartCount()
public int hashCode()
public void readExternal(java.io.ObjectInput oi) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
oi
- the stream to read from.java.io.IOException
java.lang.ClassNotFoundException
public void removeMessagePart(int index)
index
- the index of the part to remove.public void removeMessagePart(MessagePart part)
part
- the message part to remove.public java.lang.String toString()
public void writeExternal(java.io.ObjectOutput oo) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
oo
- the stream to write to.java.io.IOException
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |