net.jxta.impl.endpoint
Class WireFormatMessageBinary.binaryMessageProxy
java.lang.Object
net.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
message
Message message
type
MimeMediaType type
elements
List elements
namespaceIDs
HashMap namespaceIDs
namespaces
List namespaces
header
byte[] header
WireFormatMessageBinary.binaryMessageProxy
WireFormatMessageBinary.binaryMessageProxy(Message msg,
MimeMediaType type)
throws IOException
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}