gpt4 book ai didi

org.apache.chemistry.opencmis.commons.impl.XMLUtils.startXmlDocument()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 07:26:40 29 4
gpt4 key购买 nike

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

XMLUtils.startXmlDocument介绍

[英]Starts a XML document.
[中]启动一个XML文档。

代码示例

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-impl

/**
 * Serializes the type definition to XML, using the format defined in the
 * CMIS specification.
 * 
 * The XML is UTF-8 encoded and the stream is not closed.
 */
public static void writeToXML(TypeDefinition type, OutputStream stream) throws XMLStreamException {
  if (type == null) {
    throw new IllegalArgumentException("Type must be set!");
  }
  if (stream == null) {
    throw new IllegalArgumentException("Output stream must be set!");
  }
  XMLStreamWriter writer = XMLUtils.createWriter(stream);
  XMLUtils.startXmlDocument(writer);
  XMLConverter.writeTypeDefinition(writer, CmisVersion.CMIS_1_1, XMLConstants.NAMESPACE_CMIS, type);
  XMLUtils.endXmlDocument(writer);
  writer.close();
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

@Override
  public void write(OutputStream out) throws Exception {
    XMLStreamWriter writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeQuery(writer, cmisVersion, query);
    XMLUtils.endXmlDocument(writer);
  }
});

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

protected void writeAclXML(Acl acl, CmisVersion cmisVersion, OutputStream out) throws XMLStreamException {
    XMLStreamWriter writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeAcl(writer, cmisVersion, true, acl);
    XMLUtils.endXmlDocument(writer);
  }
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

@Override
  public void write(OutputStream out) throws Exception {
    XmlSerializer writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeQuery(writer, cmisVersion, query);
    XMLUtils.endXmlDocument(writer);
  }
});

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

@Override
  public void write(OutputStream out) throws Exception {
    XMLStreamWriter writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeAcl(writer, cmisVersion, true, acl);
    XMLUtils.endXmlDocument(writer);
  }
});

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

@Override
  public void write(OutputStream out) throws Exception {
    XmlSerializer writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeAcl(writer, cmisVersion, true, acl);
    XMLUtils.endXmlDocument(writer);
  }
});

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

XMLStreamWriter writer = XMLUtils.createWriter(out);
XMLUtils.startXmlDocument(writer);

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

XMLUtils.startXmlDocument(writer);
XMLConverter.writeAllowableActions(writer, context.getCmisVersion(), true, allowableActions);
XMLUtils.endXmlDocument(writer);

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

XMLUtils.startXmlDocument(writer);

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