Name
MessageElementEnumeration
Synopsis
This is a helper interface; its
nextMessageElement( )
method returns a
MessageElement
object. This prevents performing a
class cast by using the nextElement( )
method of
the Enumeration
interface. These enumerations are
returned from the getElements( )
method of the
Message
interface.
public interface MessageElementEnumeration extends java.util.Enumeration { // Public Instance Methods public abstract boolean hasMoreMessageElements(); public abstract MessageElement nextMessageElement(); }
Returned By
Message.getElements()
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.