|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.endpoint.WireFormatMessageBinary
public class WireFormatMessageBinary
A Wire Format Message which encodes the message into Mime Type "application/x-jxta-msg".
This implementation does nothing with encodings. This implemenation does not use any mime parameters attached to the requesting mime type.
WireFormatMessageFactory,
JXTA Protocols Specification : Binary Message Format| Nested Class Summary | |
|---|---|
(package private) static class |
WireFormatMessageBinary.binaryElementProxy
|
(package private) static class |
WireFormatMessageBinary.binaryMessageProxy
Internal representation for a binary format wire message. |
(package private) static class |
WireFormatMessageBinary.Instantiator
Our instantiator. |
| Field Summary | |
|---|---|
protected static byte |
HAS_ENCODING
|
protected static byte |
HAS_SIGNATURE
|
protected static byte |
HAS_TYPE
|
static WireFormatMessageFactory.Instantiator |
INSTANTIATOR
Our instantiator for the factory. |
protected static int |
MESSAGE_VERSION
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
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. |
String |
getFileExtension()
|
MimeMediaType |
getMimeType()
|
InputStream |
getStream()
|
int |
hashCode()
|
void |
sendToStream(OutputStream sendTo)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final byte HAS_TYPE
protected static final byte HAS_ENCODING
protected static final byte HAS_SIGNATURE
protected static final int MESSAGE_VERSION
public static final WireFormatMessageFactory.Instantiator INSTANTIATOR
| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String getFileExtension()
getFileExtension in interface Documentpublic MimeMediaType getMimeType()
getMimeType in interface Document
public InputStream getStream()
throws IOException
getStream in interface DocumentIOException
public void sendToStream(OutputStream sendTo)
throws IOException
sendToStream in interface DocumentIOExceptionpublic long getByteLength()
getByteLength in interface WireFormatMessagepublic MimeMediaType getContentEncoding()
getContentEncoding in interface WireFormatMessage
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||