Class ByteArrayToOctetStream
- java.lang.Object
-
- org.apache.qpid.server.message.mimecontentconverter.ByteArrayToOctetStream
-
- All Implemented Interfaces:
ObjectToMimeContentConverter<byte[]>
,Pluggable
public class ByteArrayToOctetStream extends java.lang.Object implements ObjectToMimeContentConverter<byte[]>
-
-
Constructor Summary
Constructors Constructor Description ByteArrayToOctetStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMimeType()
java.lang.Class<byte[]>
getObjectClass()
int
getRank()
A converter with a higher rank value takes priority over those with lower values.java.lang.String
getType()
boolean
isAcceptable(byte[] object)
byte[]
toMimeContent(byte[] object)
-
-
-
Method Detail
-
getMimeType
public java.lang.String getMimeType()
- Specified by:
getMimeType
in interfaceObjectToMimeContentConverter<byte[]>
-
getObjectClass
public java.lang.Class<byte[]> getObjectClass()
- Specified by:
getObjectClass
in interfaceObjectToMimeContentConverter<byte[]>
-
getRank
public int getRank()
Description copied from interface:ObjectToMimeContentConverter
A converter with a higher rank value takes priority over those with lower values.- Specified by:
getRank
in interfaceObjectToMimeContentConverter<byte[]>
-
isAcceptable
public boolean isAcceptable(byte[] object)
- Specified by:
isAcceptable
in interfaceObjectToMimeContentConverter<byte[]>
-
toMimeContent
public byte[] toMimeContent(byte[] object)
- Specified by:
toMimeContent
in interfaceObjectToMimeContentConverter<byte[]>
-
-