Project JXTA

net.jxta.impl.endpoint
Class WireFormatMessageBinary.binaryMessageProxy

java.lang.Object
  extended bynet.jxta.impl.endpoint.WireFormatMessageBinary.binaryMessageProxy
All Implemented Interfaces:
Document
Enclosing class:
WireFormatMessageBinary

static class WireFormatMessageBinary.binaryMessageProxy
extends Object
implements Document

Internal representation for a binary format wire message. Implemented as an inner class to allow content encodings to be easily mapped on top of the streams this class produces.


Field Summary
(package private)  List elements
           
(package private)  byte[] header
           
(package private)  Message message
           
(package private)  HashMap namespaceIDs
           
(package private)  List namespaces
           
(package private)  MimeMediaType type
           
 
Constructor Summary
(package private) WireFormatMessageBinary.binaryMessageProxy(Message msg, MimeMediaType type)
           
 
Method Summary
 long getByteLength()
          {@inheritDoc}
 String getFileExtension()
          
 MimeMediaType getMimeType()
          
 InputStream getStream()
          
 void sendToStream(OutputStream sendTo)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

Message message

type

MimeMediaType type

elements

List elements

namespaceIDs

HashMap namespaceIDs

namespaces

List namespaces

header

byte[] header
Constructor Detail

WireFormatMessageBinary.binaryMessageProxy

WireFormatMessageBinary.binaryMessageProxy(Message msg,
                                           MimeMediaType type)
                                     throws IOException
Method Detail

getFileExtension

public String getFileExtension()

Specified by:
getFileExtension in interface Document

getMimeType

public MimeMediaType getMimeType()

Specified by:
getMimeType in interface Document

getStream

public InputStream getStream()
                      throws IOException

Specified by:
getStream in interface Document
Throws:
IOException

sendToStream

public void sendToStream(OutputStream sendTo)
                  throws IOException

Specified by:
sendToStream in interface Document
Throws:
IOException

getByteLength

public long getByteLength()
{@inheritDoc}


JXTA J2SE