Name

StringEnumeration

Synopsis

This class provides a super enumerator: it allows the direct retrieval of strings (instead of requiring you to call nextElement( ) and cast that return to a string).

public class StringEnumeration implements java.util.Enumeration {
// Public Constructors
   public StringEnumeration(java.util.Enumeration e);  
// Public Instance Methods
   public boolean hasMoreStrings();  
   public String nextString();  
// Methods Implementing Enumeration
   public boolean hasMoreElements();  
   public Object nextElement();  
}

Returned By

net.jxta.endpoint.Message.getNames()

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.