|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.endpoint.WireFormatMessageBinary.Instantiator
static class WireFormatMessageBinary.Instantiator
Our instantiator.
Constructor Summary | |
---|---|
WireFormatMessageBinary.Instantiator()
Creates new WireFormatMessageBinary Instantiator |
Method Summary | |
---|---|
Message |
fromBuffer(ByteBuffer buffer,
MimeMediaType type,
MimeMediaType contentEncoding)
Create an abstract message from a serialization. |
Message |
fromWire(InputStream is,
MimeMediaType type,
MimeMediaType contentEncoding)
Create an abstract message from a serialization. |
MimeMediaType[] |
getSupportedContentEncodings()
Returns a list of the content encodings supported by this serialization. |
MimeMediaType[] |
getSupportedMimeTypes()
Returns the list of mime types supported by this serialization. |
WireFormatMessage |
toWire(Message msg,
MimeMediaType type,
MimeMediaType[] preferedContentEncoding)
Create a WireFormatMessage from an abstract message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WireFormatMessageBinary.Instantiator()
Method Detail |
---|
public MimeMediaType[] getSupportedMimeTypes()
getSupportedMimeTypes
in interface WireFormatMessageFactory.Instantiator
public MimeMediaType[] getSupportedContentEncodings()
getSupportedContentEncodings
in interface WireFormatMessageFactory.Instantiator
public Message fromWire(InputStream is, MimeMediaType type, MimeMediaType contentEncoding) throws IOException
fromWire
in interface WireFormatMessageFactory.Instantiator
is
- The message stream. Message serializations must either use
internal data or EOF to determine the length of the stream.type
- Declared message type of the stream including any optional
configuration parameters.contentEncoding
- Content encoding (including optional parameters)
which has been applied to the message. May be null for unencoded messages.
IOException
- if an io error occurspublic Message fromBuffer(ByteBuffer buffer, MimeMediaType type, MimeMediaType contentEncoding) throws IOException
net.jxta.endpoint.WireFormatMessageFactory.Instantiator
fromBuffer
in interface WireFormatMessageFactory.Instantiator
buffer
- The byte buffer. Message serializations must either use
internal data or EOF to determine the length of the stream.type
- Declared message type of the stream including any optional
configuration parameters.contentEncoding
- Content encoding (including optional parameters)
which has been applied to the message. May be null for unencoded messages.
IOException
- if an io error occurspublic WireFormatMessage toWire(Message msg, MimeMediaType type, MimeMediaType[] preferedContentEncoding)
toWire
in interface WireFormatMessageFactory.Instantiator
msg
- the message for which a serialization is desired.type
- the the serialization form desired. This can include
mime parameters to control options.preferedContentEncoding
- An array of acceptable message encodings
in descending order of preference. any or none of these encoding options
may be used. May be null for unencoded messages.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |