public class FlowRendererMSGFLOW
extends java.lang.Object
The FlowRendererMSGFLOW class provides utility methods to allow the reading and writing of MessageFlow instances in the *.msgflow file format.
Change Activity: -------- ----------- ------------- ------------------------------------ Reason: Date: Originator: Comments: -------- ----------- ------------- ------------------------------------ xxxxx.x 2010-08-10 dstorey v7.0.0.2 Release xxxxx.x 2011-07-06 dstorey v8.0.0.0 Release
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
copyright |
Constructor and Description |
---|
FlowRendererMSGFLOW() |
Modifier and Type | Method and Description |
---|---|
static MessageFlow |
read(java.io.File msgflowFile)
Returns a new MessageFlow instance that is based on the *.msgflow file
represented by the supplied File.
|
static MessageFlow |
read(java.lang.String msgFlowUTF8String,
java.lang.String flowName)
Returns a new MessageFlow instance that is based on the *.msgflow file
with the supplied contents and name.
|
static java.lang.String |
toString(MessageFlow messageFlow)
Returns a string representation of the supplied MessageFlow
as serialized in the *.msgflow file format.
|
static void |
write(MessageFlow messageFlow,
java.lang.String directoryName)
Serialize the supplied MessageFlow instance to the directory
of the supplied name.
|
public static final java.lang.String copyright
public static java.lang.String toString(MessageFlow messageFlow) throws java.io.IOException
messageFlow
- MessageFlow; provided MessageFlow instancejava.io.IOException
public static void write(MessageFlow messageFlow, java.lang.String directoryName) throws java.io.IOException, com.ibm.broker.MessageBrokerAPIException
messageFlow
- MessageFlow instance to serialize.String
- directoryName the directoryLocation to output the message flow file.
Empty string is the current working directory.java.io.IOException
com.ibm.broker.MessageBrokerAPIException
public static MessageFlow read(java.io.File msgflowFile) throws java.io.IOException
msgflowFile
- Describes a valid message flow file that has a .msgflow extension.java.io.IOException
public static MessageFlow read(java.lang.String msgFlowUTF8String, java.lang.String flowName) throws java.io.IOException
msgFlowUTF8String
- The contents of the *.msgflow file as a String in UTF8 format.flowName
- The name of the message flow (e.g. "mf1").java.io.IOException