* @throws IOException
*/
private void setupOutput(MessageProperties msgProps) throws IOException {
if (m_dimeOutput == null) {
m_dimeOutput = new DimeOutputBuffer();
OutByteBuffer obuff = new OutByteBuffer();
m_dimeOutput.setBuffer(obuff);
obuff.setOutput(m_socket.getOutputStream());
}
MediaType type = msgProps.getContentType();
int typecode = type == null ? DimeCommon.TYPE_NONE : DimeCommon.TYPE_MEDIA;
m_dimeOutput.nextMessage();
m_dimeOutput.nextPart(null, typecode, type == null ? null : type.toString());