Name

MessageElement

Synopsis

Message elements embody data that is contained within a message. Each message element has a particular name and a document associated with the name; they are created by the newMessageElement( ) method of the Message interface.

public abstract class MessageElement {
// Public Constructors
   public MessageElement();  
// Public Class Methods
   public static String[ ] parseName(String name);  
// Property Accessor Methods (by property name)
   public abstract byte[ ] getBytesOffset();  
   public abstract int getLength();  
   public abstract String getName();  
   public abstract int getOffset();  
   public abstract InputStream getStream();  
   public abstract net.jxta.document.MimeMediaType getType();  
// Public Methods Overriding Object
   public abstract Object clone();  
   public abstract boolean equals(Object target);  
}

Passed To

Message.{addElement(), removeElement()}

Returned By

Message.{getElement(), newMessageElement(), removeElement()}, MessageElementEnumeration.nextMessageElement()

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.