JXTA

net.jxta.endpoint
Interface WireFormatMessage

All Superinterfaces:
Document, DocumentByteBufferIO, DocumentStreamIO

public interface WireFormatMessage
extends Document, DocumentByteBufferIO

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
 
Methods inherited from interface net.jxta.document.DocumentStreamIO
getStream, sendToStream
 
Methods inherited from interface net.jxta.document.DocumentByteBufferIO
getByteBuffers
 

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:
The size of the serialized and encoded message in bytes.

JXSE