gpt4 book ai didi

org.jboss.as.controller.persistence.XmlConfigurationPersister.marshallAsXml()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 15:29:05 25 4
gpt4 key购买 nike

本文整理了Java中org.jboss.as.controller.persistence.XmlConfigurationPersister.marshallAsXml()方法的一些代码示例,展示了XmlConfigurationPersister.marshallAsXml()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlConfigurationPersister.marshallAsXml()方法的具体详情如下:
包路径:org.jboss.as.controller.persistence.XmlConfigurationPersister
类名称:XmlConfigurationPersister
方法名:marshallAsXml

XmlConfigurationPersister.marshallAsXml介绍

暂无

代码示例

代码示例来源:origin: thorntail/thorntail

@Override
public void marshallAsXml(ModelNode model, OutputStream output) throws ConfigurationPersistenceException {
  delegate.marshallAsXml(model, output);
}

代码示例来源:origin: io.thorntail/container

@Override
public void marshallAsXml(ModelNode model, OutputStream output) throws ConfigurationPersistenceException {
  delegate.marshallAsXml(model, output);
}

代码示例来源:origin: org.wildfly.swarm/container

@Override
public void marshallAsXml(ModelNode model, OutputStream output) throws ConfigurationPersistenceException {
  delegate.marshallAsXml(model, output);
}

代码示例来源:origin: org.jboss.as/jboss-as-controller

/**
 * Unused and deprecated.
 *
 * @param model the model to store
 * @param file the file to store to
 * @throws ConfigurationPersistenceException
 *
 * @deprecated unused
 */
@Deprecated
protected void store(final ModelNode model, final File file) throws ConfigurationPersistenceException {
  try {
    final FileOutputStream fos = new FileOutputStream(file);
    try {
      BufferedOutputStream output = new BufferedOutputStream(fos);
      marshallAsXml(model, output);
      output.flush();
      fos.getFD().sync();
      output.close();
    } finally {
      safeClose(fos);
    }
  } catch (Exception e) {
    throw MESSAGES.failedToStoreConfiguration(e);
  }
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com