AdroitLogic UltraESB v1.7.0

org.adroitlogic.ultraesb.api.format
Interface ByteArrayMessage


public interface ByteArrayMessage

A Message where the payload is held within a byte array


Method Summary
 java.io.Serializable asSerializableObject()
          The payload as a Serializable byte[]
 byte[] getBytes()
          Get the payload byte[]
 java.lang.String toString()
          Return the payload as a String - limited to 64K in size
 void writeTo(java.io.OutputStream os)
          Write the payload to the given OutputStream
 

Method Detail

toString

java.lang.String toString()
Return the payload as a String - limited to 64K in size

Overrides:
toString in class java.lang.Object
Returns:
the payload as a String - limited to 64K in size

writeTo

void writeTo(java.io.OutputStream os)
             throws java.io.IOException
Write the payload to the given OutputStream

Parameters:
os - the OutputStream to serialize the message into
Throws:
java.io.IOException - on failure

asSerializableObject

java.io.Serializable asSerializableObject()
                                          throws FormatConversionException
The payload as a Serializable byte[]

Returns:
the payload as a Serializable byte[]
Throws:
FormatConversionException - on failure

getBytes

byte[] getBytes()
Get the payload byte[]

Returns:
the payload as a byte[]

Copyright (c) 2010-2012 AdroitLogic Private Ltd. All rights reserved.