public class ArchiveServerConfigurationXmlExport extends Object
Constructor and Description |
---|
ArchiveServerConfigurationXmlExport(List<ChannelMetaDataDAO.ChannelConfiguration> channels)
Creates an XML export of the specified channels.
|
Modifier and Type | Method and Description |
---|---|
void |
serialize(OutputStream outputStream,
String encoding)
Serializes the channel configurations represented by this object to XML.
|
public ArchiveServerConfigurationXmlExport(List<ChannelMetaDataDAO.ChannelConfiguration> channels)
serialize(OutputStream, String)
method.channels
- list of channel configurations.IllegalArgumentException
- if channels
contains more than one configuration
object for the same channel name.NullPointerException
- if channels
is null
or contains
null
elements.public void serialize(OutputStream outputStream, String encoding)
outputStream
- output stream to which the XML data is supposed to be written.encoding
- character encoding to use for the XML data. If
null
, "UTF-8" is used.NullPointerException
- if outputStream
is null
.RuntimeException
- if the serialization fails (most likely because of an I/O
error).Copyright © 2011–2017 aquenos GmbH. All rights reserved.