Project JXTA

net.jxta.impl.endpoint
Interface WireFormatMessage

All Superinterfaces:
Document
All Known Implementing Classes:
WireFormatMessageBinary

public interface WireFormatMessage
extends Document

A wire serialization of an abstract message.

See Also:
Message, WireFormatMessageFactory

Method Summary
 long getByteLength()
          Returns the size of the serialized and encoded form of the message in bytes.
 MimeMediaType getContentEncoding()
          Returns the encoding used for this content.
 
Methods inherited from interface net.jxta.document.Document
getFileExtension, getMimeType, getStream, sendToStream
 

Method Detail

getContentEncoding

MimeMediaType getContentEncoding()
Returns the encoding used for this content. May be null for unencoded (raw) content.

Returns:
the encoding used for this message.

getByteLength

long getByteLength()
Returns the size of the serialized and encoded form of the message in bytes.

Returns:
long the size of the serialized and encoded message in bytes.
Since:
JXTA 1.0

JXTA J2SE