class TOMMessage extends SystemMessage implements Externalizable, Comparable, Cloneable {

	public static byte[] messageToBytes(TOMMessage m) {
		ByteArrayOutputStream baos = new ByteArrayOutputStream();
		DataOutputStream dos = new DataOutputStream(baos);
		try {
			m.wExternal(dos);
			dos.flush();
		} catch (Exception e) {
		}
		return baos.toByteArray();
	}

	public  TOMMessage();
	public  TOMMessage(int sender, int session, int sequence, byte[] content, int view, TOMMessageType type);
	public  TOMMessage(int sender, int session, int sequence, int operationId, byte[] content, int view,
			TOMMessageType type);

}