public class MessageSerializer
extends java.lang.Object
Constructor and Description |
---|
MessageSerializer() |
MessageSerializer(TransformerPool transformers) |
Modifier and Type | Method and Description |
---|---|
void |
serialize(Message msg,
java.io.OutputStream stream)
Serializes a message to an output stream.
|
void |
serialize(Message msg,
javax.xml.transform.Result result)
Serializes a message to Result.
|
void |
serialize(Message msg,
java.io.Writer writer)
Serializes a message to a writer.
|
void |
setTransformers(TransformerPool transformers)
Configures a TransformerPool for the MessageSerializer to use.
|
public MessageSerializer()
public MessageSerializer(TransformerPool transformers)
public void setTransformers(TransformerPool transformers)
transformers
- TransformerPool to use for serializing.public void serialize(Message msg, java.io.Writer writer) throws GException
msg
- Message to serialize.writer
- Writer to serialize to.GException
public void serialize(Message msg, java.io.OutputStream stream) throws GException
msg
- Message to serialize.stream
- OutputStream to serialize to.GException
public void serialize(Message msg, javax.xml.transform.Result result) throws GException
msg
- Message to serialize.result
- Result to serialize to.GException
?? 2022 Perforce Software, All rights reserved
This software is the confidential and proprietary information of Perforce, Inc. and is subject to copyright protection under laws of the United States of America and other countries. The use of this software should be in accordance with the license agreement terms you entered into with Perforce, Inc.