gpt4 book ai didi

org.fcrepo.utilities.xml.XercesXmlSerializers.writeConsoleNoDocType()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 03:55:05 30 4
gpt4 key购买 nike

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

XercesXmlSerializers.writeConsoleNoDocType介绍

[英]method: "XML" charset: "UTF-8" indenting: TRUE indent-width: 2 line-width: 80 preserve-space: FALSE omit-XML-declaration: FALSE omit-DOCTYPE: TRUE
[中]方法:“XML”字符集:“UTF-8”缩进:真缩进宽度:2行宽度:80保留空间:假省略XML声明:假省略DOCTYPE:真

代码示例

代码示例来源:origin: org.fcrepo/fcrepo-server

/**
 * Serialize the final WSDL document to the given writer.
 */
public void serialize(Writer out) throws IOException {
  XercesXmlSerializers.writeConsoleNoDocType(_wsdlDoc, out);
}

代码示例来源:origin: fcrepo3/fcrepo

/**
 * Serialize the final WSDL document to the given writer.
 */
public void serialize(Writer out) throws IOException {
  XercesXmlSerializers.writeConsoleNoDocType(_wsdlDoc, out);
}

代码示例来源:origin: fcrepo3/fcrepo

@SuppressWarnings("deprecation")
private void testWriteConsoleNoDocType(Document doc) throws Exception {
  StringWriter sout = new StringWriter();
  SunXmlSerializers.writeConsoleNoDocType(doc, sout);
  String proprietary = sout.toString();
  sout = new StringWriter();
  XercesXmlSerializers.writeConsoleNoDocType(doc, sout);
  String standard = sout.toString();
  if (!proprietary.equals(standard)) {
    System.out.println("<<<<");
    System.out.println(proprietary);
    System.out.println(">>>>");
    System.out.println(standard);
  }
  assertEquals(proprietary, standard);
}

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